note 118640 deleted from function.password-verify by salathe

From: Date: Mon, 21 Sep 2020 14:44:46 +0000
Subject: note 118640 deleted from function.password-verify by salathe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215295@lists.php.net to get a copy of this message
Note Submitter: chris at weeone dot de ---- The function password_verify() uses constant time. This makes it safe against timing attacks. Don't use crypt($password_database) === crypt($password_given_by_login), since there is no protection against timing attacks! If you don't want to use password_verify(), then have a look at hash_equals(), which also runs a timing attack safe string comparison.

« previous php.notes (#215295) next »