Difference between revisions of "Generate Random Password"
Jump to navigation
Jump to search
| Line 1: | Line 1: | ||
``` | ``` | ||
| + | < /dev/urandom tr -dc A-Za-z0-9 | head -c32 | ||
< /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; | ||
``` | ``` | ||
Revision as of 17:31, 29 April 2023
< /dev/urandom tr -dc A-Za-z0-9 | head -c32
< /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