Method | Description | |
---|---|---|
getOptions ( ) : array | Gets options for password_hash function | |
isValid ( string $password, string $passwordHash, string $legacySalt = null, string $identity = null ) : JeremyKendall\Password\Result | Validates password and rehashes if necessary. | |
rehash ( string $password ) : string | Hashes password using password_hash. Uses PASSWORD_DEFAULT encryption. | |
setOptions ( array $options ) | Set options for password_hash function |
public getOptions ( ) : array | ||
return | array | password_hash options |
public isValid ( string $password, string $passwordHash, string $legacySalt = null, string $identity = null ) : JeremyKendall\Password\Result | ||
$password | string | Password provided by user during login |
$passwordHash | string | User's current hashed password |
$legacySalt | string | OPTIONAL salt used in legacy password hashing |
$identity | string | OPTIONAL unique user identifier |
return | JeremyKendall\Password\Result |
public setOptions ( array $options ) | ||
$options | array | password_hash options |