Re: 8 byte key for 3DES

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Mark Rae" <mark@xxxxxxxxxxxxxxxxx> wrote in message
news:eaoFG%235LHHA.4992@xxxxxxxxxxxxxxxxxxxxxxx
"tshad" <tscheiderich@xxxxxxxxxxxxxxx> wrote in message
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...
No, it wasn't you. I saw somewhere that for 3DES the key length was
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


.



Relevant Pages

  • Re: Any way to make rsync copy resource files?
    ... rsync in Tiger knows about resource forks IIRC ... however it still has a major bug when doing so. ... Tom "Tom" Harrington ...
    (comp.sys.mac.programmer.help)
  • Re: linux and ipod
    ... > tom wrote: ... i downloaded the hfsplus driver, compiled it, but there were bugs ... i hacked a bit on the code and isolated the bug in the driver. ... was writing the resource fork. ...
    (comp.os.linux.development.system)
  • Re: A basic cryptanalysis question
    ... since your compressor is invertable e must equal 256. ... How long do you want to be a FOOL Tom. ... any brains If you take a ONE BYTE CIPHERTEXT FILE and decrypt it with BICOM ... My Crypto code ...
    (sci.crypt)
  • expect losing output at program exit (Solaris, Mac OS X)
    ... In tracking down some problems we've been having with DejaGnu we ... This is probably an OS bug, but I thought I'd see if anyone else has ... On Solaris, using Expect 5.38.0, Tom would get very occasional ... (We're not running real FreeBSD here, ...
    (comp.lang.tcl)
  • Re: Crypto.Cipher.ARC4, bust or me doing something wrong?
    ... > I suspect this is a bug with AMK's Crypto package from ... Me being dumb or bug? ... encrypting one. ... you used a different keystream to decrypt than you used ...
    (comp.lang.python)