php - What does needsRehash() return if the password repeats? -


to more clear of question does:

needsrehash($value)  

return? true or 1?

according to:

https://github.com/cakephp/cakephp/blob/master/src/auth/defaultpasswordhasher.php

cakephp's needsrehash() calls php's password_needs_rehash() which:

returns true if hash should rehashed match given algo , options, or false otherwise.

additional references:

https://api.cakephp.org/3.3/class-cake.auth.abstractpasswordhasher.html#_needsrehash

https://api.cakephp.org/3.3/source-class-cake.auth.abstractpasswordhasher.html#65-78


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -