Added second mkpasswd

This commit is contained in:
madmaurice 2015-10-13 18:09:25 +02:00
parent 0267c82083
commit 53b7f30750

View file

@ -2,3 +2,8 @@ mkpasswd() {
LEN=${1:-30}
tr -cd ' -~' < /dev/urandom | fold -w $LEN | sed 1q
}
mkpasswd2() {
LEN=${1:-30}
base64 < /dev/urandom | fold -w $LEN | sed 1q
}