With this package you can encrypt/decrypt data between JavaScript and Laravel (PHP). It supports all the same ciphers algorithms as Laravel's Illuminate Encryption componenet.
In your terminal, run the following command.
npm install --save @rugaard/laravel-encrypter
The same AES-128 and AES-256 ciphers as in Laravel.
AES-128-CBC
AES-256-CBC
AES-128-GCM
AES-256-GCM