CART0669,CART0470

“Get a Personal Trainer for Your Computer!”©

Reprinted, in part, from a TechRepublic article by Jack Wallen, published on May 24, 2016.

From the command line

Let's say you have a file, ~/Documents/important.docx, that you want to password protect. Using gpg, you would do the following.

ADVERTISING

  • 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.
  • You should now see the file important.docx.gpg in the ~/Documents folder. To decrypt that file, do the following.
  • Open a terminal window.
  • Change to the ~/Documents directory with the command cd ~/Documents.
  • Decrypt the file with the command gpg important.dox.gpg.
  • When prompted, enter the decryption password you created when encrypting the file.
  • You could send that file to a recipient and, as long as they have gpg installed, they can decrypt the file with the password you used for encryption. If they are a Windows user, they can always install Gpg4win.

The GUI way

If you happen to be a GNOME 3 user (or any Linux desktop that makes use of either Nautilus or GNOME Files), you can add a contextual menu entry to the file manager for encryption. Here's how (I'll demonstrate on Ubuntu GNOME 16.04).

 

  • Open a terminal window.
  • Issue the command sudo apt-get install seahorse-nautilus.
  • Type your sudo password and hit Enter.
  • If prompted, type y and hit Enter.
  • Allow the installation to complete.
  • Open the file manager and navigate to the ~/Documents directory. Right-click the important.docx file and then click the Encrypt... entry (Figure A). You will be prompted to enter and then verify an encryption password. Once you've verified the password, the important.docx.gpg file will appear in ~/Documents.

Figure A

 

Created with GIMP

Image: Jack Wallen

Encrypting a file within Nautilus.

The decryption process is the same.

  • Open the file manager.
  • Navigate to the encrypted file.
  • Right-click the encrypted file.
  • Click Open with Decrypt File.
  • When prompted, give the new file a name and click Enter.
  • When prompted, enter the decryption password and click Enter.
  • The encrypted file will now be decrypted and ready to use.

 

BACK TO ”ENCRYPTION”...

CLICK TO SHARE THIS PAGE

CLICK THE FIRST LETTER OF YOUR ACRONYM OR TERM TO SEARCH GLOSSARY:

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

© Computer Coach.  All written materials are the sole property of Computer Coach (unless otherwise attributed) and no part of this website may be used in any format without the express written permission of Computer Coach.