Python and PHP encryption/decryption

Diez B. Roggisch deets at nospam.web.de
Wed Aug 19 16:42:43 EDT 2009


Jean-Claude Neveu schrieb:
> I'm looking for a recommendation about encryption/decryption packages 
> for Python.
> 
> I'm working on a project that will require me to store some values in a 
> database in encrypted format. I'll be storing them from a PHP script and 
> retrieving them (decrypting them) using Python. I'm currently using 
> PHP's mcrypt package to encrypt the values, and I'm using AES for 
> encryption, so something AES-compatible would be ideal. However, the 
> project is at the development stage so I can easily change how I'm 
> encrypting things in PHP if there is a compelling reason on the Python 
> side of things to do so.

With PyCrypto[1] you have a wide range of choices, amongst others AES.

If that's the best algorithm, or even the best python-package to 
implement it, I don't know.


[1] http://www.dlitz.net/software/pycrypto/


Diez



More information about the Python-list mailing list