On Wed, Jul 07, 2004, [EMAIL PROTECTED] wrote: > Salutation > > A customer of mine receives encrypted files from a market data supplier. > (Yes, it belongs to the mayor ...) > [snip details]
> But it told me: > > bad magic number > > I also tried "-des-cbc", "-des-cfb", "-des-ecb", "-des-ofb", but with no success. > > Maybe "openssl enc -d ..." can not do what "des -D ..." did?? > Or maybe I have just not tried the right approach? > > "Polite criticisms and good answers would be appreciated." > Short answer: try the -nosalt option. Long answer... Including the key on the command line can be problematical on some systems if someone can run ps. DES doesn't provide any real security any more and can be cracked with fairly moderate computing power with modern systems. If its an option redoing the whole thing would be advisable. The old way that enc/dec worked was vulnerable to dictionary attacks so the default format was made more secure using a salted algorithm. This removes the security problem but makes it incompatible with the old format. Mixing the two results in that error message. Having just looked at the manual page I see that it hasn't been updated, ugh. Anyway if you want compatibility with the old format use the -nosalt option. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Funding needed! Details on homepage. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
