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?!
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?!
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.
Just elaborating on the answer from Ifan Iqbal. As he says this happens when running several Laravel installations with the same encryption key. Instead of clearing your cookies, simply create a unique key for each Laravel install you run (good practice by the way).
Go to your terminal and put:
php artisan key:generate
This will automatically set the encryption key in app/config/app.php and your error will go away.