mkpasswd reviewed

This commit is contained in:
madmaurice 2015-07-12 18:30:53 +02:00
parent 98e580f814
commit 4ad93964d0

6
zshrc
View file

@ -34,9 +34,13 @@ runfor() {
mkpasswd() {
LEN=${1:-30}
cat /dev/urandom | base64 | head -n 1 | cut -c -$LEN
base64 < /dev/urandom | fold -w $LEN | sed 1q
}
mkpasswd2() {
LEN=${1:-30}
tr -cd ' -~' < /dev/urandom | fold -w $LEN | sed 1q
}
export EDITOR="vim"