Keybase proof
I hereby claim:
- I am jandrusk on github.
- I am jandrusk (https://keybase.io/jandrusk) on keybase.
- I have a public key whose fingerprint is 0B44 B8CD 543D C529 7B55 6475 873A 425D 7A58 7FA1
To claim this, I am signing this object:
# Name: compute_hashes.py | |
# Author: Justin Andrusk | |
# Date: 08/23/12 | |
# Purpose: Walk a directory tree recursivly in order to computer SHA512 checksums. | |
import sys, os | |
global filectr | |
filectr = 0 | |
flist = [] | |
def mylister(currdir): |
def GetSHA512(filename): | |
# Function to return SHA512 hash of given file. | |
import hashlib | |
BLOCKSIZE = 65536 | |
hasher = hashlib.sha512() | |
with open(filename, 'rb') as afile: | |
buf = afile.read(BLOCKSIZE) | |
while len(buf) > 0: | |
hasher.update(buf) | |
buf = afile.read(BLOCKSIZE) |
I hereby claim:
To claim this, I am signing this object: