Created
August 15, 2019 06:55
-
-
Save neofob/06a4656065b6f08611dd17c7e1348210 to your computer and use it in GitHub Desktop.
Random password in a random length
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 bash | |
# Generate a random password, save it to a file, copy it via xclip | |
# Usage: genpass.sh saved_passwd.txt | |
openssl rand -base64 $(echo $RANDOM%8+24 | bc) | tee > $1 | xclip -selection c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment