From: Nicolas Boisselier Date: Tue, 17 Apr 2018 16:12:06 +0000 (+0100) Subject: etc/profile.d/functions X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=b22561db48a2da022f1c3de3939a2decd758bd7c;p=nb.git etc/profile.d/functions --- 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 }