Difference between revisions of "Generate Random Password"
Jump to navigation
Jump to search
(Created page with "``` < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo; ```") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
``` | ``` | ||
+ | < /dev/urandom tr -dc A-Za-z0-9 | head -c40 | ||
< /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo; | < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo; | ||
+ | ``` | ||
+ | |||
+ | more | ||
+ | ``` | ||
+ | tr -dc A-Za-z0-9 </dev/urandom | head -c 13 ; echo '' | ||
+ | |||
+ | |||
+ | tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' </dev/urandom | head -c 13 ; echo | ||
+ | |||
+ | |||
+ | LC_ALL=C tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' </dev/urandom | head -c | ||
+ | |||
+ | openssl rand -base64 12 | ||
+ | |||
+ | openssl rand -hex 12 | ||
``` | ``` |
Latest revision as of 21:51, 25 January 2024
< /dev/urandom tr -dc A-Za-z0-9 | head -c40 < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c${1:-32};echo;
more
tr -dc A-Za-z0-9 </dev/urandom | head -c 13 ; echo '' tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' </dev/urandom | head -c 13 ; echo LC_ALL=C tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' </dev/urandom | head -c openssl rand -base64 12 openssl rand -hex 12