]> git.nbdom.net Git - nb.git/commitdiff
etc/profile.d/functions
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 17 Apr 2018 16:12:06 +0000 (17:12 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 17 Apr 2018 16:12:06 +0000 (17:12 +0100)
etc/profile.d/functions

index a4ccfe9491f9f4a40a69399fe5d5458f0ce1621f..cc7acf6f7fc66a1f56515a5581cfb507ce627228 100644 (file)
@@ -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
 }