Skip to content

Instantly share code, notes, and snippets.

@nhindman
Created January 2, 2017 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nhindman/a14410e4c6532bfba5b2f37257a2aa11 to your computer and use it in GitHub Desktop.
Save nhindman/a14410e4c6532bfba5b2f37257a2aa11 to your computer and use it in GitHub Desktop.
import hashlib
bin1 = '1111'
bin2 = '1110'
bin1_as_char = chr(int(bin1, 2))
bin2_as_char = chr(int(bin2, 2))
print hashlib.md5(bin1_as_char).hexdigest()
print hashlib.md5(bin2_as_char).hexdigest()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment