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

All converting, hashing and encrypting commands · OpenSSL 3 cheatsheet

Was this page helpful?