PasswordHasher
in package
Table of Contents
Constants
- MAX_PASSWORD_LENGTH = 255
Methods
- hashPassword() : string
- Create a password hash from a given string by a specific algorithm.
Constants
MAX_PASSWORD_LENGTH
public
mixed
MAX_PASSWORD_LENGTH
= 255
Methods
hashPassword()
Create a password hash from a given string by a specific algorithm.
public
static hashPassword(string $password[, string $algorithm = '' ][, string $salt = '' ][, int $spinCount = 10000 ]) : string
2.4.2.4 ISO Write Protection Method
Parameters
- $password : string
-
Password to hash
- $algorithm : string = ''
-
Hash algorithm used to compute the password hash value
- $salt : string = ''
-
Pseudorandom string
- $spinCount : int = 10000
-
Number of times to iterate on a hash of a password
Tags
Return values
string —Hashed password