2017-06-18 53 views
0

我安装了Laravel并将其上传到git 现在我下载了它 但是当我尝试进入该网站我得到这个错误:Laravel:唯一支持的密码是AES-128-CBC和AES-256-CBC,密钥长度正确

The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths.

我发现了这样的回答:The only supported ciphers are AES-128-CBC and AES-256-CBC with the correct key lengths. laravel 5.3

config/app.php

'key' => env('APP_KEY'), 

'cipher' => env('APP_KEY'), 

我跑

php artisan key:generate 

ENV文件:

APP_KEY=base64:zJQUL0Kuwhb2JL6L7IJ+1UO7IUSQSw2Td40F9LNABfE= 

我跑composer update

,但仍是同样的错误...... 我试图清除配置和缓存,但没有帮助。

我还能做什么?

回答

2

您的config/app.php文件有误,请将密码条目更改为'cipher' => 'AES-256-CBC'。你有密钥和密码都指向相同的.env变量。

+0

仍然没有工作.. –

+0

对不起我的坏,我nedded清除chache –

相关问题