9.6. Text and File Encryption

KGpg also offers the possibility to encrypt text or clipboard contents. Right-click the padlock icon and find the options Encrypt clipboard and Decrypt clipboard as well as the option for opening the integrated editor.

9.6.1. Encrypting and Decrypting the Clipboard

Files copied to the clipboard can easily be encrypted with a few clicks. Open the function overview by right-clicking the KGpg padlock icon. Select Encrypt Clipboard and designate the key to use. A status message about the encryption procedure is displayed on the desktop. The encrypted contents can now be processed from the clipboard as needed. The decryption of clipboard contents is just as easy. Simply open the menu on the panel, select Decrypt Clipboard, and enter the password associated with your private key. The decrypted version is now available for processing in the clipboard and in the KGpg editor.

9.6.2. Encrypting and Decrypting by Dragging and Dropping

To encrypt or decrypt files, click the icons on the desktop or in the file manager, drag them to the padlock in the panel, and drop them there. If the file is not encrypted, KGpg asks for the key to use. As soon as you select a key, the file is encrypted without any further messages. In the file manager, encrypted files are designated with the suffix .asc and the padlock icon. These files can be decrypted by clicking the file icon, dragging it to the KGpg symbol in the panel, and dropping it there. If the original filename already exists, a dialog opens that asks how to name the file or if it should be overwritten.

9.6.3. The KGpg Editor

Instead of creating contents for encryption in an external editor then encrypting the file with one of the methods described above, you can use the integrated editor of KGpg to create the file. Open the editor (Open Editor from the context menu), enter the desired text, and click Encrypt. Then select the key to use and complete the encryption procedure. To decrypt files, use Decrypt and enter the password associated with the key.

Generating and checking signatures on documents is just as easy as encrypting directly from the editor. Select a file in the file manager and copy it to the clipboard. Right-click the padlock icon in the panel and select Sign/Verify Clipboard. Then choose the private key to use and enter the associated password. KGpg informs about the successful generation of the signature. Files can also be signed from the editor by simply clicking Sign/Verify. To check a signed file, go to File+Open Editor, load the file to check in the editor, and click Sign/Verify.