OpenSSL 3 · Converting, hashing and encrypting

Generate random bytes

Print 32 random bytes as 64 hex characters, suitable for a secret key.

openssl rand -hex 32

Official OpenSSL 3 documentation

More converting, hashing and encrypting commands

All converting, hashing and encrypting commands · OpenSSL 3 cheatsheet

Was this page helpful?