| 1 | <?php |
||
| 9 | final class DefaultPasswordHashStrategy implements PasswordHashStrategyInterface |
||
| 10 | { |
||
| 11 | /** @var \Nette\Security\Passwords */ |
||
| 12 | private $passwords; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param array $options |
||
| 16 | */ |
||
| 17 | public function __construct(array $options = []) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * {@inheritdoc} |
||
| 24 | */ |
||
| 25 | public function hash(string $password): string |
||
| 29 | |||
| 30 | /** |
||
| 31 | * {@inheritdoc} |
||
| 32 | */ |
||
| 33 | public function needRehash(string $password): bool |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritdoc} |
||
| 40 | */ |
||
| 41 | public function verify(string $password, string $hash): bool |
||
| 45 | } |
||
| 46 |