PasswordHashingStrategyInterface
interface PasswordHashingStrategyInterface (View source)
A password hashing strategy interface
Methods
string
hashPassword(string $password, string $staticSalt = null)
Hash a password for storage
bool
validatePassword(string $password, string $hashedPasswordAndSalt, string $staticSalt = null)
Validate a hashed password against a cleartext password
Details
string
hashPassword(string $password, string $staticSalt = null)
Hash a password for storage
bool
validatePassword(string $password, string $hashedPasswordAndSalt, string $staticSalt = null)
Validate a hashed password against a cleartext password