Generate a random string using the console
Generate a random string using the command line:
cat /dev/urandom | tr -cd [:graph:] | head -c 32
On OSX, the previous command might return a tr: Illegal byte sequence
error, so try:
export LC_ALL=C; cat /dev/urandom | tr -cd [:graph:] | head -c 32