Message3059

Author rcatherman
Recipients rcatherman
Date 2008-03-06.12:17:06
SpamBayes Score 0.0
Marked as misclassified No
Message-id <1204805827.21.0.132199691481.issue1004@psf.upfronthosting.co.za>
In-reply-to
Content
Use the folling command to md5sum a file:

$ java -Xmx256m -cp <path to jython>/jython.jar org.python.util.jython
-c "import md5;import sys;print md5.new( open( sys.argv[1] ).read()
).hexdigest()" <file to hash>

Then, try the same thing with python:
$ python -c "import md5;import sys;print md5.new( open( sys.argv[1]
).read() ).hexdigest()" <file to hash>
 
or with md5sum:
$ md5sum <file to hash>

The python and md5sum output match, while the jython does not.  I see
this behavior on 2.2.1, and 2.1.
History
Date User Action Args
2008-09-12 00:31:53nrileysetspambayes_score: 0.264964 -> 0.0
2008-03-06 12:17:07rcathermansetspambayes_score: 0.264964 -> 0.264964
recipients: + rcatherman
2008-03-06 12:17:07rcathermansetspambayes_score: 0.264964 -> 0.264964
messageid: <1204805827.21.0.132199691481.issue1004@psf.upfronthosting.co.za>
2008-03-06 12:17:07rcathermanlinkissue1004 messages
2008-03-06 12:17:06rcathermancreate