Skip to content

Instantly share code, notes, and snippets.

@Kyle-Falconer
Last active August 15, 2016 18:56
Show Gist options
  • Save Kyle-Falconer/7c3c97c96574cdb8c2ac33fcf6187ae2 to your computer and use it in GitHub Desktop.
Save Kyle-Falconer/7c3c97c96574cdb8c2ac33fcf6187ae2 to your computer and use it in GitHub Desktop.
make a random string
# method 1:
openssl rand -base64 40
# method 2:
echo "import hashlib ; from uuid import uuid4 ; print hashlib.sha256(str(uuid4())).hexdigest()" | python -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment