md5 from python different then md5 from command line
johnjsal at NOSPAMgmail.com
Sun May 7 20:16:34 CEST 2006
ursache.marius at gmail.com wrote:
> I noticed that the md5 computed with md5 module from python is
> different then the md5 sum computed with md5sum utility (on slackware
> and gentoo).
> $echo marius|md5sum
> 0f0f60ac801a9eec2163083a22307deb -
>>>> test = md5.new("marius")
>>>> print test.hexdigest()
> Any idea why? and how to get the same md5 sum for both calls?
Just a quick md5-related follow-up question: I was experimenting with it
and making md5 sums for strings, but how do you use the md5 module to
create a sum for an actual file, such as an .exe file?
More information about the Python-list