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

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


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


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.


This problem can also happen when you run more than one Laravel project/app with same Encryption Key. Just change key value in app/config/app.php with different value and you ready to go.