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

Emmanuel Mariki picture Emmanuel Mariki · Sep 26, 2016 · Viewed 72.4k times · Source

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

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'

Answer

Mugoma J. Okomba picture Mugoma J. Okomba · Oct 1, 2016

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

$ php artisan key:generate

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

$ cp .env.example .env