Created
June 21, 2021 22:02
-
-
Save jmarhee/410f88f82db3f75a9325fb0023231c14 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
function new_password () { | |
if [ ! -z $1 ]; then | |
length=$1 | |
else | |
length=20 | |
fi | |
curl -s "https://www.random.org/passwords/?num=1&len=$length&format=plain&rnd=new" | pbcopy | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment