1 | <?php |
||
10 | class PHPassHasher implements PasswordHasherInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var PasswordHash |
||
14 | */ |
||
15 | private $phpass; |
||
16 | |||
17 | /** |
||
18 | * Constructor. |
||
19 | * |
||
20 | * @param int $iterationLength |
||
21 | */ |
||
22 | 1 | public function __construct($iterationLength = 8) |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 1 | public function generateHash($password) |
|
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | 1 | public function compareWith($password, $raw) |
|
42 | } |
||
43 |