Skip to content

Instantly share code, notes, and snippets.

View neonprimetime's full-sized avatar

neonprimetime security (Justin C Miller) neonprimetime

View GitHub Profile

Keybase proof

I hereby claim:

  • I am neonprimetime on github.
  • I am neonprimetime (https://keybase.io/neonprimetime) on keybase.
  • I have a public key whose fingerprint is 178B 6EE0 5B89 5CDA AE44 DB29 E2E9 A4B8 5F94 EFA5

To claim this, I am signing this object:

@neonprimetime
neonprimetime / hash_remote_file.py
Last active December 14, 2022 00:07 — forked from brianewing/remotemd5.py
Python Hash (MD5, SHA) of remote file (URL)
import os, hashlib, urllib2, optparse
def get_remote_md5_sum(url,algorithm):
remote = urllib2.urlopen(url)
return hash(remote, algorithm)
def hash(remote, algorithm="md5"):
max_file_size=100*1024*1024
if algorithm=="md5":
hash = hashlib.md5()