note 114660 added to function.password-hash
| From: | ic dot czech at gmail dot com | Date: | Wed, 19 Mar 2014 12:37:07 +0000 |
| Subject: | note 114660 added to function.password-hash | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198978@lists.php.net to get a copy of this message | ||
@dmp
If you need to generate $2a$ hash you must have php version older than 5.3.7 or use crypt() function
instead
<?php
$cost = 10;
$salt = 'usesomesillystringforsalt';
$hash = crypt('rasmuslerdorf', '$2a$'.$cost.'$'.$salt.'$');
?>
but it's less secured than $2y$
----
Server IP: 72.52.91.14
Probable Submitter: 213.155.247.1
----
Manual Page -- http://php.net/manual/en/function.password-hash.php
Edit -- https://master.php.net/note/edit/114660
Del: integrated -- https://master.php.net/note/delete/114660/integrated
Del: useless -- https://master.php.net/note/delete/114660/useless
Del: bad code -- https://master.php.net/note/delete/114660/bad+code
Del: spam -- https://master.php.net/note/delete/114660/spam
Del: non-english -- https://master.php.net/note/delete/114660/non-english
Del: in docs -- https://master.php.net/note/delete/114660/in+docs
Del: other reasons-- https://master.php.net/note/delete/114660
Reject -- https://master.php.net/note/reject/114660
Search -- https://master.php.net/manage/user-notes.php