note 74344 added to function.crypt
| From: | leth at nowhere dot not | Date: | Fri, 06 Apr 2007 14:51:53 +0000 |
| Subject: | note 74344 added to function.crypt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125148@lists.php.net to get a copy of this message | ||
for me(on OpenBSD4.0+Apache 1.3(standard)+php4.3.10) blowfish seems to work if you do something like
this:
if (CRYPT_BLOWFISH == 1)
{
$salt="this should really be a long line of salt";
$blowfish_salt = "\$2a\$07\$".substr($salt, 0, CRYPT_SALT_LENGTH);
echo crypt($pass, $blowfish_salt);
}
of course with $salt set as a good long salt.
----
Server IP: 129.16.214.50
Probable Submitter: 80.217.60.34
----
Manual Page -- http://www.php.net/manual/en/function.crypt.php
Edit -- https://master.php.net/note/edit/74344
Del: integrated -- https://master.php.net/note/delete/74344/integrated
Del: useless -- https://master.php.net/note/delete/74344/useless
Del: bad code -- https://master.php.net/note/delete/74344/bad+code
Del: spam -- https://master.php.net/note/delete/74344/spam
Del: non-english -- https://master.php.net/note/delete/74344/non-english
Del: in docs -- https://master.php.net/note/delete/74344/in+docs
Del: other reasons-- https://master.php.net/note/delete/74344
Reject -- https://master.php.net/note/reject/74344
Search -- https://master.php.net/manage/user-notes.php