note 106656 deleted from function.md5 by peehaa
| From: | peehaa@php.net | Date: | Fri, 12 Jul 2013 16:20:00 +0000 |
| Subject: | note 106656 deleted from function.md5 by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-195589@lists.php.net to get a copy of this message | ||
Note Submitter: anthonymccuen at yahoo dot com
----
If your going to hash a password or some other content, you can try the code below.
<?php
function hash_pass($password) {
$appKey = sha1($password);
$appId = 555;
$otherApp = '6cf6e971f7c125615a1ee20510c1c70f'; // simple md5
$appSaltKey = crypt($password);
$getStrLen = strlen($appKey);
$getIdLen = strlen($appId);
$randzStrInt = rand($appId, 999);
if ($appId === 555) {
$go = strlen($appKey);
$other = strlen(crypt(md5(rand($appId, $appId))));
$execute = rand($other, $appId) . "-" . rand($go, $appId) . "-" .
rand(strlen(crypt($otherApp)), $appId);
echo $execute . " today is <b>" . $date . "</b>";
}
?>