1 | <?php |
||
9 | final class PasswordManager implements PasswordManagerInterface |
||
10 | { |
||
11 | /** |
||
12 | * @param string $password |
||
13 | * |
||
14 | * @return string |
||
15 | * |
||
16 | * @throws EmptyPasswordException |
||
17 | */ |
||
18 | 2 | public function hash(string $password): string |
|
26 | |||
27 | /** |
||
28 | * @param string $password |
||
29 | * @param string $hash |
||
30 | * |
||
31 | * @return bool |
||
32 | */ |
||
33 | 2 | public function verify(string $password, string $hash): bool |
|
37 | } |
||
38 |