note 106656 added to function.md5

From: Date: Thu, 24 Nov 2011 22:49:02 +0000
Subject: note 106656 added to function.md5
Groups: php.notes 
Request: Send a blank email to php-notes+get-184668@lists.php.net to get a copy of this message
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>"; } ?> ---- Server IP: 208.69.120.55 Probable Submitter: 68.39.217.28 ---- Manual Page -- http://www.php.net/manual/en/function.md5.php Edit -- https://master.php.net/note/edit/106656 Del: integrated -- https://master.php.net/note/delete/106656/integrated Del: useless -- https://master.php.net/note/delete/106656/useless Del: bad code -- https://master.php.net/note/delete/106656/bad+code Del: spam -- https://master.php.net/note/delete/106656/spam Del: non-english -- https://master.php.net/note/delete/106656/non-english Del: in docs -- https://master.php.net/note/delete/106656/in+docs Del: other reasons-- https://master.php.net/note/delete/106656 Reject -- https://master.php.net/note/reject/106656 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184668) next »