您当前的位置: 首页 >  ar

知其黑、受其白

暂无认证

  • 0浏览

    0关注

    1250博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

Laravel中APP_KEY起什么作用

知其黑、受其白 发布时间:2021-09-10 13:15:24 ,浏览量:0

框架中是这样描述的: This key is used by the Illuminate encrypter service and should be set to a random, 32 character string, otherwise these encrypted strings will not be safe. Please do this before deploying an application!

也就是这个key是一个随机字符串,用于实现框架中的encrypt(加密)服务,例如存储用户的session,cookie等,从而确保信息安全。可以通过artisan命令将该key更新。

在终端上执行:

php artisan key:generate 就可以获得新的APP_KEY了

关注
打赏
1665558895
查看更多评论
立即登录/注册

微信扫码登录

0.0416s