Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel : "mcrypt_decrypt(): The IV parameter must be as long as the blocksize"

Tags:

laravel

mcrypt

I ran composer update on a Laravel application, and now I am getting this error:

mcrypt_decrypt(): The IV parameter must be as long as the blocksize

What happened?!

like image 372
Kousha Avatar asked May 28 '14 21:05

Kousha


2 Answers

I figured this out. All you have to do is clear your cookies, and everything will be A-okay!

like image 115
Kousha Avatar answered Sep 22 '22 19:09

Kousha


You need to change your cipher at app\config\app.php. Having same cipher name was causing that problem for me. I changed the cipher name uniquely & then it worked fine.

like image 23
user2432443 Avatar answered Sep 20 '22 19:09

user2432443