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