configfiles/zsh/.zsh/10-helpers.zsh

10 lines
172 B
Bash
Raw Normal View History

2015-10-08 14:31:40 +02:00
mkpasswd() {
LEN=${1:-30}
tr -cd ' -~' < /dev/urandom | fold -w $LEN | sed 1q
}
2015-10-13 18:09:25 +02:00
mkpasswd2() {
LEN=${1:-30}
base64 < /dev/urandom | fold -w $LEN | sed 1q
}