diff --git a/password-gen.sh b/password-gen.sh index 7dc3a85..a53d178 100755 --- a/password-gen.sh +++ b/password-gen.sh @@ -1,12 +1,13 @@ #!/bin/sh +size=64 alnum() { - cat /dev/urandom | tr -dc [:alnum:] | fold -w 32 | head -1 + cat /dev/urandom | tr -dc [:alnum:] | fold -w $size | head -1 } alnum_spec() { - cat /dev/urandom | tr -dc [:alnum:]'!@#$%^&*()-_=+' | fold -w 32 | head -1 + cat /dev/urandom | tr -dc [:alnum:]'!@#$%^&*()-_=+' | fold -w $size | head -1 } _help() {