Laravel 5.5 加密

加密

encrypt();  // 加密
decrypt();  // 解密
// 哈希算法加密
    Laravel 的 Hash 门面为存储用户密码提供了安全的 Bcrypt 哈希算法
    Hash::make($request->newPassword);
    (通过哈希验证密码)
    Hash::check('plain-text', $hashedPassword)

猜你喜欢

转载自blog.csdn.net/qq_37910492/article/details/84546292