note 112031 deleted from function.password-verify by aharvey

From: Date: Wed, 24 Apr 2013 18:24:26 +0000
Subject: note 112031 deleted from function.password-verify by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-194615@lists.php.net to get a copy of this message
Note Submitter: staff at newsocialife dot com ---- Why would someone need the function password_verify? It will be just <?php $hash = '$2y$07$BCryptRequires22Chrcte/VlQH0piJtjXl.0t1XkA8pw9dMXTpOq'; $the_algorithm = PASSWORD_DEFAULT; $password = 'rasmuslerdorf'; if($hash === password_hash($password, $the_algorithm)) echo 'password is valid'; else echo "password isn't valid"; ?>

« previous php.notes (#194615) next »