Skip to content

Instantly share code, notes, and snippets.

@marklj
Created August 1, 2016 19:03
Show Gist options
  • Save marklj/2e6fa47ec563151bcd887aca9fcd1f5e to your computer and use it in GitHub Desktop.
Save marklj/2e6fa47ec563151bcd887aca9fcd1f5e to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ $1 ]]; then
openssl rand -base64 $1
else
openssl rand -base64 32
fi
# make an alias
# alias crypto='/usr/local/bin/openssl_key_gen.sh'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment