Last active
November 13, 2019 20:14
-
-
Save waynegraham/a98f46bc019d2269bd809736bdd13d7c to your computer and use it in GitHub Desktop.
Password generator in zsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env zsh | |
if [ -z "$1" ] | |
then | |
length=18 | |
else | |
length=$1 | |
fi | |
openssl rand -base64 $length |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment