Linux Journal: Peter van der Linden’s Guide to Linux: A Lesson in Encryption, Part 2

“In Part 1 of this series, we reviewed how public key encryption
(PKE) uses a pair of keys, one to encode and one to decode. As well
as being the strongest known form of encryption, PKE is more secure
because you no longer have to keep the encoding key secret–you can
publish it openly. So it’s easy for field agents to replace any
headquarter keys that are compromised.

“Now you’re ready to encrypt a file. Use your favorite editor to
create a text file to work on called myinfo.txt, containing some
highly secret text…”