From 53b7f30750bcd2b7414846155c410f9b64879deb Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Tue, 13 Oct 2015 18:09:25 +0200 Subject: [PATCH] Added second mkpasswd --- zsh/.zsh/10-helpers.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh/.zsh/10-helpers.zsh b/zsh/.zsh/10-helpers.zsh index 06630bb..5e321c5 100644 --- a/zsh/.zsh/10-helpers.zsh +++ b/zsh/.zsh/10-helpers.zsh @@ -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 +}