Last active
July 9, 2020 17:31
-
-
Save rojenzaman/7fd6bf6bcbf7636f38209a87fbb50950 to your computer and use it in GitHub Desktop.
Password Generator Bash (Very Simple)
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 | |
if [ "$#" -lt 1 ]; then | |
echo "`basename $0` <8-92>"; | |
exit 1; | |
fi | |
PASS=`date +%s | sha256sum | base64 | head -c $1` | |
echo "$PASS"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
usage
example