Re: 8 byte key for 3DES
- From: "tshad" <tscheiderich@xxxxxxxxxxxxxxx>
- Date: Wed, 3 Jan 2007 17:36:11 -0800
"Mark Rae" <mark@xxxxxxxxxxxxxxxxx> wrote in message
news:eaoFG%235LHHA.4992@xxxxxxxxxxxxxxxxxxxxxxx
"tshad" <tscheiderich@xxxxxxxxxxxxxxx> wrote in messageNo, it wasn't you. I saw somewhere that for 3DES the key length was
news:egFvi55LHHA.3588@xxxxxxxxxxxxxxxxxxxxxxx
I was told that you need a 16 byte key.
Who told you that...? Not me, certainly!
Your key can be pretty much any length...
supposed to be 16 or more.
Also, I did a test on that MD5/SHA1 problem and apparently the line:
des.Key = pdb.CryptDeriveKey("TripleDES", "MD5", 168, New Byte(7) {})
will give me the same results as:
des.Key = pdb.CryptDeriveKey("TripleDES", "SHA1", 168, New Byte(7) {}).
I used the first one to encrypt my string and then the 2nd one to decrypt it
and got the correct result.
I assume that there is a bug in the CryptDeriveKey function.
Thanks,
Tom
.
- Follow-Ups:
- Re: 8 byte key for 3DES
- From: Mark Rae
- Re: 8 byte key for 3DES
- References:
- 8 byte key for 3DES
- From: tshad
- Re: 8 byte key for 3DES
- From: Mark Rae
- 8 byte key for 3DES
- Prev by Date: Re: 8 byte key for 3DES
- Next by Date: Re: 8 byte key for 3DES
- Previous by thread: Re: 8 byte key for 3DES
- Next by thread: Re: 8 byte key for 3DES
- Index(es):
Relevant Pages
|