Skip to content

Instantly share code, notes, and snippets.

@itkr
Created October 15, 2013 08:49
Show Gist options
  • Save itkr/6988635 to your computer and use it in GitHub Desktop.
Save itkr/6988635 to your computer and use it in GitHub Desktop.
import random
import string
import hashlib
source = string.digits + string.letters
letters = "".join([random.choice(source) for i in xrange(25)])
letters_hash = hashlib.sha256(letters).hexdigest()
print 'Letters =>', letters
print 'SHA-256 =>', letters_hash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment