root/trunk/locker-bin/checksums.py

Revision 30, 301 bytes (checked in by broder, 16 years ago)

checksums.py should output rmd160 instead of ripemd160 (yes, I know, I'm making pointless commits, but I want to get this hook working)

  • Property svn:executable set to *
Line 
1 #!/usr/bin/env python
2
3 import sys
4 import hashlib
5
6 for arg in sys.argv[1:]:
7         print "%s:" % arg
8         f = open(arg).read()
9         print "checksums\t\tmd5 %s \\" % hashlib.md5(f).hexdigest()
10         print "\t\t\t\tsha1 %s \\" % hashlib.sha1(f).hexdigest()
11         print "\t\t\t\trmd160 %s" % hashlib.new('rmd160', f).hexdigest()
Note: See TracBrowser for help on using the browser.