AES Encryption. From Python (pyCrypto) to .NET

Posted by Why on Stack Overflow See other posts from Stack Overflow or by Why
Published on 2010-06-04T11:13:23Z Indexed on 2010/06/17 23:23 UTC
Read the original article Hit count: 376

Filed under:
|
|
|
|

I am currently trying to port a legacy Python app over to .NET which contains AES encrpytion using from what I can tell pyCrpyto. I have very limited Python and Crypto experience. The code uses the snippet from the following page. http://www.djangosnippets.org/snippets/1095/

So far I believe I have managed to work out that it that it calls Crypto.Cipher with AES and the first 32 character of our secret key as the password, but no mode or IV. It also puts a prefix on the encrpyed text when it is added to database.

What I can't work out is how I can decrypt the existing ecrypted database records in .NET. I have been looking at RijndaelManaged but it requires an IV and can't see any reference to one in python.

Can anyone point me in the dirrection to what method could be used in .NET to get the desired result.

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET