Changing app key after installation

Hi all

I’ve been running my InvoiceNinja install for a few months now and have just realised that my APP_KEY in my .env file is still at its default of SomeRandomStringSomeRandomString.

After changing this value, and despite clearing every cache that I can think of, I’m getting this error:
DecryptException in BaseEncrypter.php line 48:
The MAC is invalid.

Any ideas how I can change my APP_KEY to something else without having to wipe everything and start again?



I’m not sure…

One less than ideal option would be to export your data to JSON and re-import it into a new install.