Skip to content

Instantly share code, notes, and snippets.

@MosheBerman MosheBerman/hash.py
Last active Jun 20, 2018

Embed
What would you like to do?
A Python script to hash domain names.
import hashlib
import sys
try:
website_name = sys.argv[1]
hash_value = hashlib.md5(website_name)
print(hash_value.hexdigest().upper() + ".png")
except Exception, e:
print "Usage: " + sys.argv[0] + " {domain.com}"
@MosheBerman

This comment has been minimized.

Copy link
Owner Author

MosheBerman commented Mar 20, 2016

Save this script, then run:

python hash.py domain.com

This example gives us 7905D1C4E12C54933A44D19FCD5F9356.png.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.