From b22561db48a2da022f1c3de3939a2decd758bd7c Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 17 Apr 2018 17:12:06 +0100 Subject: [PATCH] etc/profile.d/functions --- etc/profile.d/functions | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/profile.d/functions b/etc/profile.d/functions index a4ccfe94..cc7acf6f 100644 --- a/etc/profile.d/functions +++ b/etc/profile.d/functions @@ -834,8 +834,9 @@ http_head() { } password_create() { - #tr -cd '[:alnum:]' < /dev/urandom | head -c${1:-30} - tr -cd '!-~' < /dev/urandom | head -c${1:-30} + tr -cd '[:alnum:] #$,;.:*@[]()?+=_%-' < /dev/urandom | head -c${1:-30} + #tr -cd '[:alnum:]!@#$%^&*_+-,./?' < /dev/urandom | head -c${1:-30} + #tr -cd '!-~' < /dev/urandom | head -c${1:-30} echo } -- 2.47.3