md5 from python different then md5 from command line
dejan.wirusrodiger at ck.t-com.hr
Sun May 7 12:23:13 CEST 2006
ursache.marius at gmail.com said the following on 07.05.2006 12:07:
> 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?
try md5sum marius
probably "new line" character is not computed in "echo marius|md5sum"
Dejan Rodiger - PGP ID 0xAC8722DC
Delete wirus from e-mail address
More information about the Python-list