* Resizeable passwords

This commit is contained in:
shockrah 2022-05-01 19:38:12 -07:00
parent 2b45f830e4
commit 8e9b5ef976

View File

@ -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() {