唯一支持的密码是具有正确密钥长度的 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

查看:59
本文介绍了唯一支持的密码是具有正确密钥长度的 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 文件指定
'密码' => '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

如果您没有从 .env.example 复制的 .env:

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

$ cp .env.example .env

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

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