How to Password Protect and Encrypt a File on Linux Command Line

In this Linux quick tip we will discuss password protecting a file using GNU Privacy Guard (GnuPG). This tool provides digital encryption and signing services using the OpenPGP standard. We will cover the basics of the gpg command in respects to encryption and decryption files using a passphrase, how to confirm encryption and specifying which cipher to use.

Article Source.