hashPassword()
hashPassword(string $password, string $algorithm = '', string $salt = '', integer $spinCount = 10000) : string
Create a password hash from a given string by a specific algorithm.
2.4.2.4 ISO Write Protection Method
Parameters
string | $password | Password to hash |
string | $algorithm | Hash algorithm used to compute the password hash value |
string | $salt | Pseudorandom string |
integer | $spinCount | Number of times to iterate on a hash of a password |
Returns
string —Hashed password