Co o tym myślicie
<?php function createSalt() { $text = http://www.php.net/md5(http://www.php.net/uniqid(http://www.php.net/rand(), TRUE)); return http://www.php.net/substr($text, 0, 15); } $salt = createSalt(); $number = "1+"; $hash = "+Ala"; $password = hash('sha256', $number .$salt . $hash); http://www.php.net/echo $salt."</br>"; http://www.php.net/echo $password; ?>
Password_hash a nie jakieś wynalazki.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)