Re: [fw-wiz] MD5 x SHA-1

From: John Adams (jna-dated-1039647753.99126a@retina.net)
Date: 12/06/02


To: Roberto Joćo Lopes Garcia <roberto@mha.com.br>
From: John Adams <jna-dated-1039647753.99126a@retina.net>
Date: Fri Dec  6 18:12:17 2002

On Fri, 6 Dec 2002, Roberto Joćo Lopes Garcia wrote:

> Hi
>
> I need to know which is better as a file hash, that is, to see if a file was modified
>
> MD5 or SHA-1

SHA is slower, MD5 is faster.

For the time being, there hasn't been a successful attack on MD5 (as far
as I can remember.) There have been partial attacks on the individual
round functions of MD5 (using differential cryptanalysis), but not of the
full algorithm.

There also hasn't been a successful attack on SHA.

Both MD5 and SHA are strengethened versions of MD4, with SHA taking more
time than MD5 because the digest length was increased from 128 to 160
bits, and the number of steps per round going from 16 to 20.

Overview of hash functions here:
http://citeseer.nj.nec.com/cache/papers/cs/1811/ftp:zSzzSzftp.cs.uow.edu.auzSzpubzSzpaperszSz1995zSztr-95-09.pdf/bakhtiari95cryptographic.pdf

(check out page 6)

--john

-- 
J. Adams					http://www.retina.net/~jna
The secret of knowing where you are, is knowing what time it is. -- Anonmyous


Relevant Pages

  • RE: where to download md5.py?
    ... md5 is a standard Python module. ... I don't have sha either, but my system administrators don't know a thing ...
    (comp.lang.python)
  • IPSec VPN NAT-T Multiple Clients to same Destination
    ... The ISA is connected directly to the Internet. ... If there are more than one client behind a NAT then ... MD5 ... SHA ...
    (microsoft.public.isa)
  • MD5 and SHA cracked/broken...
    ... at Crypto 2004 preliminary papers were presented that ... MD5 is broken and SHA-1 seems to be in a precarious position (even ... (especially SHA, whose name even includes the name "secure"). ... The time you enjoy wasting is not wasted time ...
    (comp.lang.python)
  • Re: [fw-wiz] MD5 x SHA-1
    ... >I need to know which is better as a file hash, that is, to see if a file was modified ... An attacker will almost ... SHA-1 is a better hashing algorithm than MD5, at this time, ...
    (Firewall-Wizards)
  • Re: MD5 for z/OS?
    ... There's open source C at: ... Linkname: sha ... The OP asked about MD5 (which is somewhat ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)