in reply to DES Encryption

I would recommend asking the person who sent the file to you how they encrypted it. DES can be used in CBC mode, or in ECB or other modes. Also, the password can be converted to a key in several ways. You'll have to know a bit more about how it was encrypted than just "with DES".

Replies are listed 'Best First'.
Re: Re: DES Encryption
by vek (Prior) on Sep 12, 2003 at 21:17 UTC

    Thanks sgifford. Could you expand a little more on what you mean by Also, the password can be converted to a key in several ways. I just want to make sure I'm asking the right questions when I contact the person who sent me the file in the first place.

    -- vek --
      DES takes an 56-bit integer as the key. This could be represented as a decimal integer or hex string. But usually people want to use a password. The password needs to be turned into the key used for encryption. One way is to just use the string as the key. But this limits the size of the password. And makes the key easier to guess. The standard way is to hash the password with MD5 or another one-way hash function and use part of the result as the key.