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
- Convert PEM to DER
- Bundle a key and certificate as PKCS#12
- Extract from a PKCS#12 bundle
- Hash a file
- Encode and decode Base64
- Encrypt a file with a password
All converting, hashing and encrypting commands · OpenSSL 3 cheatsheet