OpenSSL encrypt and decrypt a file
Encrypt
openssl enc -aes-256-cbc -salt -in <FILE> -out <FILE>.enc
to avoid deprecated key derivation.
openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in <FILE> -out <FILE>.enc
Decrypt
openssl enc -aes-256-cbc -d -in <FILE>.enc -out <FILE>
References
- Encrypt & Decrypt Files With Password Using OpenSSL
- How should I change encryption according to *** WARNING : deprecated key derivation used
Daniel Simao 12:41, 22 February 2020 (EST)