Added second mkpasswd
This commit is contained in:
parent
0267c82083
commit
53b7f30750
1 changed files with 5 additions and 0 deletions
|
@ -2,3 +2,8 @@ mkpasswd() {
|
||||||
LEN=${1:-30}
|
LEN=${1:-30}
|
||||||
tr -cd ' -~' < /dev/urandom | fold -w $LEN | sed 1q
|
tr -cd ' -~' < /dev/urandom | fold -w $LEN | sed 1q
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mkpasswd2() {
|
||||||
|
LEN=${1:-30}
|
||||||
|
base64 < /dev/urandom | fold -w $LEN | sed 1q
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue