* Resizeable passwords
This commit is contained in:
parent
2b45f830e4
commit
8e9b5ef976
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user