MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: MD5 Brain teaser

  • To: mathgroup at
  • Subject: [mg55489] Re: [mg55484] MD5 Brain teaser
  • From: Christopher Purcell <christopherpurcell at>
  • Date: Sat, 26 Mar 2005 02:39:20 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

If you are using Mac OSX, or some other Unix /Linux system, MD5 is 
likely already on your system. On Mac OSX you can do this:

a = "your text message goes here";
Export["junk.txt", a, "Text"];
Run["md5 junk.txt >junk.md5"];
Import["junk.md5", "List"] [[4]]


This runs very fast, on huge files, and re- coding MD5 in Mathematica 
would not improve on its speed.

Christopher Purcell
Sensors & Actuators Group
DRDC-Atlantic, 9 Grove St., PO Box 1012,
Dartmouth NS B2Y 3Z7 Canada
Work E-mail chris.purcell at
Work Tel 902-426-3100 x389 Fax 902-426-9654
Home Tel 902-464-9248
Home E-mail christopherpurcell at
AIM/iChatAV:   cffrc

On Mar 25, 2005, at 6:48 AM, Barthelet, Luc wrote:

> I can't find a Mathematica implementation of MD5 checksum anywhere.
> There is one email question in mathgroup in 1998 but no answer.
> Anyone feel like implementing it? I could use it.
> I found this algorithm description that includes a validation of the
> implementation.
> Thanks in advance,
> Luc

  • Prev by Date: solve question/simplify question
  • Next by Date: Re: Upgrading to v5.1?
  • Previous by thread: MD5 Brain teaser
  • Next by thread: Re: MD5 Brain teaser