How to implement a reversible encryption in js(node) / php?

The task is this in php to encrypt a string pass it to the browser which in turn would pass the string in node js and its there to decipher.
Was looking for the same algorithms reversible encryption in php and js but something not found , can anyone have any ideas ?
July 8th 19 at 16:10
2 answers
July 8th 19 at 16:12
Algorithm
AES-256

These are the standards. They are the same everywhere.

php openssl
js https://github.com/ricmoo/aes-js
July 8th 19 at 16:14
base64
I would like the key - Carmel_Muell commented on July 8th 19 at 16:17

Find more questions by tags JavaScriptPHP