How to use OpenSSL to encrypt/decrypt files?
Security Warning: AES-256-CBC does not provide authenticated encryption and is vulnerable to padding oracle attacks. You should use something like age instead. Encrypt: openssl aes-256-cbc -a -salt -pbkdf2 -in secrets.txt -out secrets.txt.enc Decrypt: openssl aes-256-cbc -d -a -pbkdf2 -in secrets.txt.enc -out secrets.txt.new More details on the various flags