Dave
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
dave
--
Dr Peter Chubb http://www.gelato.unsw.edu.au peterc AT gelato.unsw.edu.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
I'm no expert but I think md4 is considered very weak but also faster
than other hash algorithms. It is therefore used where security is
less of a concern (e.g. to checksum data which is already signed by
stronger algorithms). According to its wikipedia article rsync uses
it.
openssl comes with md4 so you can do, for instance, "openssl md4 /etc/passwd".
Try comparing the relative performance by replacing "md4" by "md5".
On my system, I ran it multiple times on a 892Mb file and once the
file was all cached in memory md4 persistently ran for 2.06 seconds
elapsed time on it while md5 settled at 3.2 seconds. That's a 35%
speedup compared to md5.
Maybe there are faster algorithms around.
--Amos
I think I have heard of hashing algorithms being implemented in video
cards (GPGPU and CUDA)
so if you really wanted some high speed hashing that would be the way to
go ;-> getting enough data to hash at that rate is left as an exercise
for the reader
sum and cksum do basic checksums and don't try to be incredibly secure.
md4 is used by some p2p networks and rsync.
--
Bring choice back to your computer.
http://www.linux.org.au/linux