OpenSSL 3 · Converting, hashing and encrypting
Hash a file
Print the SHA-256 digest of a file.
openssl dgst -sha256 file.txt
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
- Generate random bytes
- Encode and decode Base64
- Encrypt a file with a password
All converting, hashing and encrypting commands · OpenSSL 3 cheatsheet