唯一受支持的密码是具有正确密钥长度的AES-128-CBC和AES-256-CBC.拉拉韦尔5.3 [英] The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. laravel 5.3

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

问题描述

我使用composer安装了Laravel 5.3的新副本,但出现此错误:

I installed a new fresh copy of Laravel 5.3 using composer but I'm getting this error:

仅受支持的密码是AES-128-CBC和AES-256-CBC,带有 正确的密钥长度.即使我的config目录中的app.php文件也指定了
'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'

推荐答案

您需要在appication文件夹中具有 .env ,然后运行:

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

$ php artisan key:generate

如果您没有 .env.example 中的 .env 副本:

$ cp .env.example .env

这篇关于唯一受支持的密码是具有正确密钥长度的AES-128-CBC和AES-256-CBC.拉拉韦尔5.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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