Go to TogaWare.com Home Page. GNU/Linux Desktop Survival Guide
by Graham Williams
Duck Duck Go

Encrypting a File

20190907 To encrypt single file with a symmetric cipher (default is AES-128) using a passphrase use the command gpg with the --symmetric command line option as follows:

$ gpg --symmetric myfile.txt
This will create a file named myfile.txt.gpg.

Use the --decrypt command line option to decrypt:

$ gpg --decrypt myfile.txt.pgp > myfile.txt

Copyright © 1995-2020 Togaware Pty Ltd
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware and the author of open source software including Rattle and wajig.
Also the author of Data Mining with Rattle and Essentials of Data Science.