1.1. KMail 1.1.5. Cryptography Using a PGP Key KMail allows you to use cryptography in order to encrypt and sign your e-mails, ensuring that your communications are not tampered with. The easiest way to use encryption with KMail is if you already have a PGP key. If you don’t here’s how to proceed: 1. Open a terminal window (System+Terminals . Konsole ). 2. Type gpg –gen-key. 3. You are asked for what type of key you want: choose DSA and ElGamal. 4. Choose a key size: 2048 bits is the default, and is enough for today’s needs; 4096 bits is probably extreme. 5. You can select an expiration date: 0 is for no expiration date. 6. Enter your user identification which contains your Real Name, then E-mail Address and finally an optional Comment. 7. Enter a passphrase which should be composed of upper- and lowercase letters, numbers and symbols: you need to enter it twice. 8. GPG now generates your key. Move your mouse around, surf the web, play music since it needs a lot of random data. 9. Finally to make sure everything works, type gpg –list-keys. You should get something similar to this as a result: [peter@community peter]$ gpg –list-keys pub 1024D/95DBB95A 2005-03-15 Your Name (Comment) sub 1024g/47FBB9BA 2005-03-15 For more information about generating a GPG key, please refer to the gpg(1) man page or to this excellent tutorial [http://linsec.ca/bin/view/Main/GnuPG]. Go in the Manage Identities window (Settings ..Configure KMail ) and click on Cryptography: click on the Change buttons for the OpenPGP signing key and