Skip to content

Instantly share code, notes, and snippets.

@xnoder
Created November 18, 2016 06:54
Show Gist options
  • Save xnoder/562acff6eadbc222f8b77871dbedeffa to your computer and use it in GitHub Desktop.
Save xnoder/562acff6eadbc222f8b77871dbedeffa to your computer and use it in GitHub Desktop.
Create a 32-char random string in Python
import random
import string
randomish = ''.join(random.SystemRandom().choice(string.ascii_uppercase + string.digits) for _ in range(32))
print(randomish)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment