Skip to content

Instantly share code, notes, and snippets.

Justin R. Andrusk jandrusk

Block or report user

Report or block jandrusk

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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:

View gist:671f4dce73d0252662f1
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)
View gist:6c1085d007e77c84cd5b
# 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):
You can’t perform that action at this time.