Skip to content

Instantly share code, notes, and snippets.

Last active Jun 20, 2018
What would you like to do?
A Python script to hash domain names.
import hashlib
import sys
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] + " {}"

This comment has been minimized.

Copy link
Owner Author

@MosheBerman MosheBerman commented Mar 20, 2016

Save this script, then run:


This example gives us 7905D1C4E12C54933A44D19FCD5F9356.png.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment