It would seem that the Python encryption/decryption frameworks are a bit of a minefield at the moment. I had some compilation issues with M2Crypto because of SWIG and OpenSSL compilation problems, despite having versions installed that exceeded the minimum requirements. I successfully managed to do what I wanted using ncrypt ( ). Successfully imported an RSA key, but had real problem decrypting because eqP圜rypto doesn't support the AES block cipher. Unbound method importKey() must be called with key instance as firstĬan somebody suggest how I read a key in using ezP圜rypto? I've also tried: key(key, passphrase='PASSPHRASE')ĮDIT: Just an update on this. MyKey in my case is an OpenSSL RSA public/private keypair represented as a string. I've taken a look at ezP圜rypto, but can't seem to get it to recognise an OpenSSL RSA key, I've tried importing a key with importKey as follows: key.importKey(myKey, passphrase='PASSPHRASE') Python merrychap / fluffychat Star 33 Code Issues Pull requests Decentralized chat with private messages and rooms. Does anyone know the simplest way to import an OpenSSL RSA private/public key (using a passphrase) with a Python library and use it to decrypt a message.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |