Created
September 25, 2019 08:32
-
-
Save forelabs/9d421b0432230ea70673fa2eaa9fdab3 to your computer and use it in GitHub Desktop.
password generator
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
function genpasswd() { | |
local l=$1 | |
[ "$l" == "" ] && l=32 | |
tr -dc "!$#;,.%()A-Za-z0-9_" < /dev/urandom | head -c ${l} | xargs | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment