Skip to content

Instantly share code, notes, and snippets.

@gartenfeld
Created December 31, 2014 09:08
Show Gist options
  • Save gartenfeld/e2bae886893925ed4177 to your computer and use it in GitHub Desktop.
Save gartenfeld/e2bae886893925ed4177 to your computer and use it in GitHub Desktop.
Generate a hash string using HashIDs.
from hashids import Hashids
hashids = Hashids(salt='vt', min_length=5, alphabet='abcdefghijkmnopqrstuvwxyz')
for i in range(12000,12100):
print (hashids.encrypt(i))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment