Last active
September 10, 2021 19:27
-
-
Save fischerscode/f46b3c213731ee1cf5c798a9955da6fb to your computer and use it in GitHub Desktop.
Generate a random password using urandom. eg. `./generate_password.sh 32`
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 | |
LC_ALL=C tr -dc 'A-Za-z0-9!#$%&()*+,-./:;<=>?@[\]^_`{|}~' </dev/urandom | head -c $1 ; echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment