note 117884 deleted from function.password-hash by cmb

From: Date: Sun, 24 May 2020 10:41:19 +0000
Subject: note 117884 deleted from function.password-hash by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-214670@lists.php.net to get a copy of this message
Note Submitter: VladimirMozhenkov at yahoo dot com ---- Note that this function can return NULL. It does so if you provide an incorrect constant as an algorythm. I had the following: $password = password_hash($password1, PASSWORD_BDCRYPT, array( 'cost' => 10 )); and i couldn't understand why i kept having NULL written in $password; it was a simple fact that the constant was PASSWORD_BCRYPT.

« previous php.notes (#214670) next »