Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.438 kb
import sys
import os
import os.path as pth
import hashlib
with open("whitelist_hashes.txt", mode="w") as output:
for root, dirs, files in os.walk(sys.argv[1]):
for filename in files:
path = pth.join(pth.dirname(pth.abspath(sys.argv[0])),
root, filename)
hash = hashlib.sha1(open(path).read()).hexdigest()
print path, hash
output.write(hash + "\n")
Jump to Line
Something went wrong with that request. Please try again.