Here is a quick and easy way to secure your email via public-key encryption using Thunderbird and GPG in an OS-agnostic environment.
- Thunderbird >=
- Download the extension: https://addons.mozilla.org/thunderbird/71/
- Goto Tools->Extensions and Install the Extension
- Restart Thunderbird
- Goto the new OpenPGP menu and select Key Managment
- In the new window, select Generate->New Key Pair
- Select which account you would like to associate the Keys with.
- Enter a password for the keys and select Generate Keys.
- Your newly generated keys should now be in the key management list of managed keys.
. Test the Encryption
- Create a new Email to yourself
- Enter some text in the subject and body
- From the OpenGPG menu, select Sign Message and Encrypt Message
- When you select the Send button, you will see your message converted to ASCII Armor, which is your message encrypted using your key information.
- Select Get Mail to receive your new encrypted message. By default the encrypted message will be decrypted automatically. You can change this from the OpenPGP menu.
Creating GPG Keys Using the Command Line
. gpg --gen-key
. Select your kind of key.
Please select what kind of key you want:
() RSA and RSA (default)
() DSA and Elgamal
() DSA (sign only)
() RSA (sign only)
. Select your keysize
RSA keys may be between and bits long.
What keysize do you want? (2048)
. Specifies expired date
Please specify how long the key should be valid.
= key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? ()
. Export public key for sending to your friends.
gpg --export --armor email@example.com > r00tsec.asc