laravel: in Encrypter.php line 81: mcrypt_encrypt(): Size of key is too large for this algorithm

Practice




laravel: in Encrypter.php line 81: mcrypt_encrypt(): Size of key is too large for this algorithm

use a key length of 16, 24 or 32 bytes

You need to edit /app/config/app.php and change the key on line 81.

'key' => env('APP_KEY', 'qwertyuiop[...................'),
'cipher' => MCRYPT_RIJNDAEL_128,

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Famworks"

Terms: Famworks