Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Laravel 5 Encryption on multiple projects

Basically I have two Laravel applications (5.5 & 5.4).

My question is: Can I use Laravel Encryption to "encrypt" it in my first project and "decrypt" it on my second project?

I am aware that Laravel Encryption use a key option in your config/app.php to generate the encryption. I'm just asking if there's a valid way to do this.

Thank you in advance.

like image 789
kissartisan Avatar asked Jun 18 '26 16:06

kissartisan


1 Answers

There's no backward incompatible changes in Laravel Encryption code between versions 5.4 and 5.5 (release notes) so as long as you use the same APP_KEY and the same encryption algorithm you will be able to decrypt data across your apps.

like image 153
Marcin Orlowski Avatar answered Jun 21 '26 05:06

Marcin Orlowski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!