Laravel 5.4:唯一支持的密码是具有正确密钥长度的 AES-128-CBC 和 AES-256-CBC
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44564962/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Laravel 5.4 : The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths
提问by Hardika Satasiya
It is Laravel 5.4 setup of my web app. one thing is happening repeatedly on page load. and because of that, I am not able to get data on my page.
这是我的网络应用程序的 Laravel 5.4 设置。一件事在页面加载时反复发生。因此,我无法在我的页面上获取数据。
Runtime exception: The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.
运行时例外:唯一支持的密码是具有正确密钥长度的 AES-128-CBC 和 AES-256-CBC。
Got this error repeatedly
反复出现这个错误
I would be thankful for any help.
我将不胜感激任何帮助。
回答by AddWeb Solution Pvt Ltd
I think you should try this
我想你应该试试这个
run this command
运行这个命令
php artisan key:generate
and the clear config cache using
和使用清除配置缓存
php artisan config:cache
回答by Hardika Satasiya
Make sure your app config has key and cipher set. Also make sure your .env file does not have an empty APP_KEY entry. Finally run:
确保您的应用配置设置了密钥和密码。还要确保您的 .env 文件没有空的 APP_KEY 条目。最后运行:
php artisan key:generate
回答by James Walter
Make sure to set APP_Key in .envfile and then run following command in the terminal of your application root.
确保在.env文件中设置 APP_Key,然后在应用程序根目录的终端中运行以下命令。
php artisan key:generate