Shell Script for encrypting/decrypting text file

Hello,

I am a newbie in Shell scripting. At the moment, I have a program written in C++ which gives an output file in text format. I would like to write a shell program which can take that output file and encrypt it and later if needed I want to decrypt it.

Could someone please help or suggest me anything?

Thanks a lot;)

The Unix zip command can encrypt data, and decrypt the archived file. The gpg command also does encryption and decryption, and is stronger (harder to break).

You can also use openssl.

I am going to try those and let you guys know. Thanks for replying :slight_smile: