| 1 | <?php |
||
| 7 | class BcryptHasher implements Hasher |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Hash the given value. |
||
| 11 | * |
||
| 12 | * @param string $value |
||
| 13 | * @param array $options |
||
| 14 | * |
||
| 15 | * @return string |
||
| 16 | */ |
||
| 17 | public function hash($value, array $options = []) |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Check the given plain value against a hash. |
||
| 24 | * |
||
| 25 | * @param string $value |
||
| 26 | * @param string $hash |
||
| 27 | * @param array $options |
||
| 28 | * |
||
| 29 | * @return bool |
||
| 30 | */ |
||
| 31 | public function verify($value, $hash, array $options = []) |
||
| 35 | } |
||
| 36 |