他只支持密码是AES-128-CBC和AES-256-CBC与正确的密钥长度。 laravel 5.3 [英] he only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. laravel 5.3

查看:6600
本文介绍了他只支持密码是AES-128-CBC和AES-256-CBC与正确的密钥长度。 laravel 5.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用composer安装了一个新的laravel 5.3的新副本,但我一直收到此错误

I installed a new fresh copy of laravel 5.3 using composer but i keep getting this Error


唯一支持的密码是AES-128 -CBC和AES-256-CBC与
正确的密钥长度。即使我的config.php文件在config目录中指定

'cipher'=>'AES-128-CBC',

The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. Even though my app.php file in config directory specify
'cipher' => 'AES-128-CBC',


推荐答案

您需要在应用文件夹中加入 .env ,然后运行:

You need to have .env on your appication folder then run:

$ php artisan key:generate

strong> .env 复制 .env

If you don't have .env copy from .env.example:

$ cp .env.example .env

这篇关于他只支持密码是AES-128-CBC和AES-256-CBC与正确的密钥长度。 laravel 5.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆