| Total Complexity | 2 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | class Standard implements \Aimeos\MW\Password\Iface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Returns the hashed password |
||
| 24 | * |
||
| 25 | * @param string $password Clear text password string |
||
| 26 | * @return string Hashed password |
||
| 27 | */ |
||
| 28 | public function hash( string $password ) : string |
||
| 31 | } |
||
| 32 | |||
| 33 | |||
| 34 | /** |
||
| 35 | * Verifies the password |
||
| 36 | * |
||
| 37 | * @param string $password Clear text password string |
||
| 38 | * @param string $hash Hashed password |
||
| 39 | * @return bool TRUE if password and hash match |
||
| 40 | */ |
||
| 41 | public function verify( string $password, string $hash ) : bool |
||
| 46 |