Re: Decrypt DES by password

2006-05-16 Thread Paul Rubin
Thomas Dybdahl Ahle <[EMAIL PROTECTED]> writes: > > I'm not aware of a standard that says how CryptDeriveKey is supposed > > to work > I tried to find out how the monofolks did it, but also they didn't know > the algorithms. Actually this is almost certainly an entry into the Windows Crypto AP

Re: Decrypt DES by password

2006-05-15 Thread Thomas Dybdahl Ahle
Den Mon, 15 May 2006 11:32:47 -0700. skrev Paul Rubin: > Thomas Dybdahl Ahle <[EMAIL PROTECTED]> writes: >> byte[] array2 = bytes1.CryptDeriveKey("DES", "MD5", 0, array1); >> > Anybody know how to do this in python? > > I'm not aware of a standard that says how CryptDeriveKey is supposed > to work

Re: Decrypt DES by password

2006-05-15 Thread Paul Rubin
Thomas Dybdahl Ahle <[EMAIL PROTECTED]> writes: > byte[] array2 = bytes1.CryptDeriveKey("DES", "MD5", 0, array1); > > Anybody know how to do this in python? I'm not aware of a standard that says how CryptDeriveKey is supposed to work. Or rather, there are multiple possible standard ways to do it.

Decrypt DES by password

2006-05-15 Thread Thomas Dybdahl Ahle
Hi, I've got some DES encrypted data, for which I know the password. The problem is that I have to generate an 8byte key from the password. I use python-crypto-2.0.1. I also know, that the C# way to do the decryption is: PasswordDeriveBytes bytes1 = new PasswordDeriveBytes("passwordString", null);