Jan 16, 2018

Encrypt/decrypt a file in Linux with gpg

  •     Open a terminal window.
  •     Change to the ~/Documents directory with the command cd ~/Documents.
  •     Encrypt the file with the command gpg -c important.docx.
  •     Enter a unique password for the file and hit Enter.
  •     Verify the newly typed password by typing it again and hitting Enter.