Skip to content

Instantly share code, notes, and snippets.

@waynegraham
Last active November 13, 2019 20:14
Show Gist options
  • Save waynegraham/a98f46bc019d2269bd809736bdd13d7c to your computer and use it in GitHub Desktop.
Save waynegraham/a98f46bc019d2269bd809736bdd13d7c to your computer and use it in GitHub Desktop.
Password generator in zsh
#! /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