bash script

Encryption and decryption with GPG

This will use text file containing password to encrypt and decrypt.

To Encrypt:

gpg --batch -c --passphrase-file text_file_containing_password.txt FILE_TO_ENCRYPT.txt

To Decrypt:

gpg --batch --passphrase-file text_file_containing_password.txt FILE_TO_ENCRYPT.txt

Encryption and decryption using OpenSSL tool

To Encrypt:

openssl aes-256-cbc -salt -a -e -in devops.tar.gz -out devops.tar.gz.encrypted

To Decrypt:

openssl aes-256-cbc -salt -a -d -in devops.tar.gz.encrypted -out devops.tar.gz