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.

Revisions

  1. marklj created this gist Aug 1, 2016.
    10 changes: 10 additions & 0 deletions openssl_key_gen.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/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'