OpenSSL 3 · Converting, hashing and encrypting
Encrypt a file with a password
Encrypt with AES-256 and a key derived from the password. You are prompted for it.
openssl enc -aes-256-cbc -pbkdf2 -salt -in secret.txt -out secret.enc
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
- Generate random bytes
- Encode and decode Base64
All converting, hashing and encrypting commands · OpenSSL 3 cheatsheet