Created
September 2, 2014 14:36
-
-
Save djanowski/8cdc53d5d4ea0d28b60b to your computer and use it in GitHub Desktop.
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
#! /bin/bash | |
# Creates passwords of the given length, all lower case for easier input on mobile devices. | |
length="${1:-24}" | |
password=$(openssl rand -base64 $(($length + 50)) | tr -Cd '[:lower:]' | cut -c 1-$(($length))) | |
echo "$password" | pbcopy | |
echo "$password" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment