DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (c003747a44be)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14
import hashlib
import sys

if len(sys.argv) != 2:
    print "Usage: python signer.py filename"

filename = sys.argv[1]
file = open(filename, "rb")
goodies = file.read()
file.close()

hash = hashlib.sha256(goodies).hexdigest()

print "SHA256 Hash of %s is %s" % (filename, hash)