博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
The only supported ciphers are AES-128-CBC and AES-256-CBC
阅读量:6937 次
发布时间:2019-06-27

本文共 781 字,大约阅读时间需要 2 分钟。

Laravel production.ERROR: RuntimeException: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

Laravel 报错 Laravel production.ERROR: RuntimeException: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

看了

Laravel 出现"RuntimeException inEncrypter.php line 43: The only

supported ciphers are AES-128-CBC and AES-256-CBC with the correct key
lengths."问题的解决办法

首先在cmd命令行下定位到项目所在的根目录下,接着输入:

[plain] view plain copy 在CODE上查看代码片派生到我的代码片 php artisan key:generate

效果:

这时候项目根目录下的.env文件里的APP_KEY应该会有值了:

若没有,则将上一步生成的key值输入进去即可。

得知在 .env 文件中没有配置 APP_KEY 的情况会出现上述错误

APP_KEY=base64:xxxxxxxxxxxxx=

而我的情况是压根没有 .env 文件. 我的项目是从项目组远程git仓库中pull下来的自然没有 .env 文件了.

补上了 .env 文件问题就解决了, 另外使用

php artisan key:generate

这个命令可以生成 APP_KEY .

转载地址:http://rnbnl.baihongyu.com/

你可能感兴趣的文章
Huffman Codes
查看>>
求一棵二叉树的镜像
查看>>
Principal Component Analysis(PCA) algorithm summary
查看>>
【安装Ubuntu 遇到问题】 the system is running in low-graphics mode 最新办法解决
查看>>
达拉草201771010105《面向对象程序设计(java)》第十八周学习总结
查看>>
Mysql中文输入出现1366错误的解决办法
查看>>
Ant调用Java中文显示乱码
查看>>
database工具
查看>>
[转] JavaScript 运行机制详解:再谈Event Loop
查看>>
我的转正申请
查看>>
【leetcode】509. Fibonacci Number
查看>>
day10--进程
查看>>
结构训练
查看>>
查询数据库保存成CSV格式
查看>>
enumerate
查看>>
PHP三元运算符 isset的理解
查看>>
dede织梦:文章内容页调用
查看>>
开发中常用的 25 个JavaScript 单行代码
查看>>
phh7 安装redis扩展
查看>>
也许你一直「坚持」不下去,是缺少这个前提
查看>>