summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--passwort-tresor.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/passwort-tresor.in b/passwort-tresor.in
index c64aa02..024eb31 100644
--- a/passwort-tresor.in
+++ b/passwort-tresor.in
@@ -164,9 +164,16 @@ then
fi
else
pw1=$(
- head -c ${pwLen} /dev/urandom | \
- base64 | \
- head -c ${pwLen}
+ printf '%s\n' {0..1}{0..7}{0..7} \
+ | sed '
+ 1,33d
+ $d
+ ' \
+ | while read -r s; do
+ printf '\'"$s"'\n'
+ done \
+ | shuf -n ${pwLen} --random-source=/dev/urandom -r \
+ | tr -d '\n'
)
fi
fi