Use openssl to encrypt /decrypt a file
# enc (use the encryption module) # -e (encrypt) # -d (decrypt) # -in input_file # -out output_file # -aes-256-cbc: encryption algorithm # #~~~~~~~~ # Encrypt #~~~~~~~~ openssl enc -e -aes-256-cbc -in /tmp/file.txt -out /tmp/foo.ciphered #~~~~~~~~ # Decrypt #~~~~~~~~ openssl enc -d -aes-256-cbc -in /tmp/foo.ciphered -out /tmp/foo.txt
last updated september 2017