Python Translation of C# DES Encryption

Gary Doades gpd at gpdnet.co.uk
Fri May 12 23:34:45 CEST 2006


On Fri, 12 May 2006 11:00:23 +0200, Andreas Pauley <andreasp+python at qbcon.com> wrote:

>Hi all,
>
>I'm trying to implement a Python equivalent of a C# method that encrypts 
>a string.
>My Python attempt is in the attached file, but does not return the same 
>value as the C# method (see below).
>
>Any hints?
>
>Thanks,
>Andreas
>

Check out PyDES I have had great success in decrypting strings that have been encrypted with .NET
TripleDES. Although it does not appear to encrypt the string to the same value it does work
perfectly decrypting and encrypting in a way compatible with thwe C# methods.

http://twhiteman.netfirms.com/des.html

Regards,
Gary.







More information about the Python-list mailing list