PasswordHasherInterface
interface PasswordHasherInterface (View source)
Hashes and verifies user passwords; the Application layer owns the algorithm and cost settings.
Methods
string
hashPassword(string $password)
Hash a password using the specified method.
bool
verifyPassword(string $password, string $hash)
Verify if a password matches the hashed password.
string
dummyVerificationHash()
A well-formed hash no password matches, for spending the same time on a refusal for a missing account as on a wrong password.
Details
string
hashPassword(string $password)
Hash a password using the specified method.
bool
verifyPassword(string $password, string $hash)
Verify if a password matches the hashed password.
string
dummyVerificationHash()
A well-formed hash no password matches, for spending the same time on a refusal for a missing account as on a wrong password.