1. Adam Dutko
  2. Portfolio

Source

Portfolio / beacon / helpers / file / testHash.py

1
2
3
4
5
6
7
from Hash import hash

#filePath = "/home/adutko/projects/beacon/web/uploads/src/goober.tar" 
filePath = "/home/adutko/projects/beacon/web/uploads/src/config.xml.gz"
myHash = hash(filePath)
myHash.generate()
print myHash.digest