PHP Class Neos\Flow\Tests\Unit\Cryptography\Fixture\TestHashingStrategy

Inheritance: implements Neos\Flow\Security\Cryptography\PasswordHashingStrategyInterface
Show file Open project: neos/flow-development-collection

Public Methods

Method Description
hashPassword ( string $password, string $staticSalt = null ) : string
validatePassword ( string $password, string $hashedPasswordAndSalt, string $staticSalt = null ) : boolean

Method Details

hashPassword() public method

public hashPassword ( string $password, string $staticSalt = null ) : string
$password string Cleartext password that will be hashed
$staticSalt string Optional static salt that will not be stored in the hashed password
return string The hashed password with dynamic salt (if used)

validatePassword() public method

public validatePassword ( string $password, string $hashedPasswordAndSalt, string $staticSalt = null ) : boolean
$password string
$hashedPasswordAndSalt string Hashed password with dynamic salt (if used)
$staticSalt string Optional static salt that will not be stored in the hashed password
return boolean TRUE if the given cleartext password matched the hashed password