企业🤖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'); } ~~~