I need to share some data between PHP and Python in a secure way, this is what i found on the internet, a library to encrypt/decrypt data working both in Python and PHP.


The passshare is a 32 bytes hexa – you can randomly create it by using this command: openssl rand -hex 32

In PHP:

In Python: