* This source file is subject to the license under the project that is bundled. */ namespace App\Kernel\Password; class Password { public function hash(string $password) { return password_hash($password, PASSWORD_BCRYPT); } /** * @param string $password * @param string $hash * @return bool */ public function verify(string $password, string $hash) { return password_verify($password, $hash); } }