1 | <?php |
||
8 | class CryptPasswordHasher implements PasswordHasherInterface |
||
9 | { |
||
10 | /** |
||
11 | * {@inheritdoc} |
||
12 | */ |
||
13 | 15 | public function generateHash($password) |
|
17 | |||
18 | /** |
||
19 | * {@inheritdoc} |
||
20 | */ |
||
21 | 12 | public function compareWith($password, $raw) |
|
25 | |||
26 | /** |
||
27 | * Generates a salt using the openssl API. |
||
28 | * |
||
29 | * @return string |
||
30 | */ |
||
31 | 15 | protected function generateSalt() |
|
35 | } |
||
36 |