note 113455 deleted from function.password-verify by salathe

From: Date: Mon, 21 Sep 2020 14:44:09 +0000
Subject: note 113455 deleted from function.password-verify by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215293@lists.php.net to get a copy of this message
Note Submitter: Vasil Toshkov ---- This function can be used to verify hashes created with other functions like crypt(). For example: <?php $hash = '$1$toHVx1uW$KIvW9yGZZSU/1YOidHeqJ/'; if (password_verify('rasmuslerdorf', $hash)) { echo 'Password is valid!'; } else { echo 'Invalid password.'; } // Output: Password is valid! ?>

« previous php.notes (#215293) next »