mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-users] wrong md4 digest


From: unixach
Subject: [Mldonkey-users] wrong md4 digest
Date: Sun, 8 Dec 2002 11:31:57 -0200
User-agent: KMail/1.5

I was playing with openssl dgst -md4 to create a script which echoes a ed2k:// 
link to the screen. It seemed to work (I compared the MD4 generated by 
openssl with the one generated by ed2k_hash). But only for some files. For 
"big" files, the MD4 differs.

Here is what I'm using:
openssl dgst -md4 file

Now check this out:
51383922 Dez  8 11:16 bigfile.junk
5242880 Dez  8 11:16 smallfile.junk

$ ../makehash.sh smallfile.junk 
ed2k://|file|smallfile.junk|5242880|fcaa58f498013063c0ab19899f252551|

$ ../ed2k_hash smallfile.junk 
ed2k://|file|smallfile.junk|5242880|fcaa58f498013063c0ab19899f252551|

Both are the same (makehash.sh is my script which just uses openssl as stated 
above).

Now, with the bigger file:
$ ../makehash.sh bigfile.junk 
ed2k://|file|bigfile.junk|51383922|8b27b7a44a5e5e7ae335d56f13b261d9|

$ ../ed2k_hash bigfile.junk 
ed2k://|file|bigfile.junk|51383922|5ddc1bf490d1b536fc29c06d53fc9e7b|

uh-oh, something is not right...



reply via email to

[Prev in Thread] Current Thread [Next in Thread]