RestyCrypt PHP counterpart for OpenResty encrypted-session-nginx-module. Expanded demo of this gist: https://gist.github.com/siberex/ee135b2d28b3b4be77c5 Usage See enc.php / dec.php. Test docker build -t restycrypt-test . docker run -it --rm restycrypt-test