Difference between revisions of "GnuPG"
(→Archlinux) |
(→Archlinux) |
||
Line 12: | Line 12: | ||
===Archlinux=== | ===Archlinux=== | ||
+ | |||
+ | ====Installation and Setup==== | ||
pacman -Sv gnupg gnupg2 pinentry | pacman -Sv gnupg gnupg2 pinentry | ||
Line 35: | Line 37: | ||
sudo chmod 0755 /etc/profile.d/gpg-agent.sh | sudo chmod 0755 /etc/profile.d/gpg-agent.sh | ||
+ | |||
+ | ====Generate a Key==== | ||
+ | |||
+ | gpg --gen-key | ||
+ | |||
+ | Please select what kind of key you want: | ||
+ | (1) RSA and RSA (default) | ||
+ | (2) DSA and Elgamal | ||
+ | (3) DSA (sign only) | ||
+ | (4) RSA (sign only) | ||
+ | |||
+ | Select (1) to both sign and encrypt | ||
+ | |||
+ | What keysize do you want? (2048) | ||
+ | |||
+ | I select 4096 because why not? If it had 1 million. You should select it too :p |
Revision as of 10:00, 30 October 2011
Info
PGP encryption of email and files. Since PGP is not free GnuPG comes to the rescue.
Quote:
GnuPG is the GNU project's complete and free implementation of the OpenPGP standard as defined by RFC4880 . GnuPG allows to encrypt and sign your data and communication, features a versatile key management system as well as access modules for all kinds of public key directories. GnuPG, also known as GPG, is a command line tool with features for easy integration with other applications. A wealth of frontend applications and libraries are available. Version 2 of GnuPG also provides support for S/MIME.
More information: http://www.gnupg.org/
Installation
Archlinux
Installation and Setup
pacman -Sv gnupg gnupg2 pinentry
You should use gpg-agent to manage the interactions between your software:
gpg-agent is mostly used as daemon to request and cache the password for the keychain. This is useful if GnuPG is used from an external program like a mail client. It can be activated by adding following line in ~/.gnupg/gpg.conf:
use-agent
This tells GnuPG to use the agent whenever it needs the password. However, the agent needs to run already. To autostart it, create the following file and make it executable:
sudo chmod 0755 /etc/profile.d/gpg-agent.sh
Generate a Key
gpg --gen-key
Please select what kind of key you want: (1) RSA and RSA (default) (2) DSA and Elgamal (3) DSA (sign only) (4) RSA (sign only)
Select (1) to both sign and encrypt
What keysize do you want? (2048)
I select 4096 because why not? If it had 1 million. You should select it too :p