Some services require you to generate random hex numbers to be used as a password or random auth token for authentication. The simplest method is to use this openssl cli command
openssl rand -hex 24

Free and Open Source blogger with an attitude
Some services require you to generate random hex numbers to be used as a password or random auth token for authentication. The simplest method is to use this openssl cli command
openssl rand -hex 24
openssl rand -hex 24 is a neat one-liner for a 48 character token, far simpler than piping /dev/urandom through other tools. Handy to have it written down somewhere easy to find.
My own setup uses a different key size for security reasons. That changes how many characters you need to produce.
Hi HexToken1, that’s a great point! Adjusting the byte count in the OpenSSL command makes it super flexible depending on your specific security requirements and target string length. Thanks for sharing how you handle it in your setup!