ThinkChat🤖让你学习和工作更高效,注册即送10W Token,即刻开启你的AI之旅 广告
## 对 A 密码使用Bcrypt 加密 `$password = Hash::make('secret');` 你也可直接使用 bcrypt 的 function `$password = bcrypt('secret');` ## 对加密的 A 密码进行验证 ~~~ if (Hash::check('secret', $hashedPassword)) { // The passwords match... } ~~~ ## 检查 A 密码是否需要重新加密 ~~~ if (Hash::needsRehash($hashed)) { $hashed = Hash::make('secret'); } ~~~