| 1 | <?php |
||
| 8 | class PHPPasswordHasher implements PasswordHasherInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | private $cost; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Constructor. |
||
| 17 | * |
||
| 18 | * @param int $cost |
||
| 19 | */ |
||
| 20 | 1 | public function __construct($cost = 12) |
|
| 24 | |||
| 25 | /** |
||
| 26 | * {@inheritdoc} |
||
| 27 | */ |
||
| 28 | 1 | public function generateHash($password) |
|
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | 1 | public function compareWith($password, $raw) |
|
| 40 | } |
||
| 41 |