Pretty Good Privacy (PGP)?
What is it?
It is a data encryption and decryption computer program that provides cryptographic privacy and authentication for data communication. PGP is often used for signing, encrypting and decrypting texts, E-mails, files, directories and whole disk partitions to increase the security of e-mail communications. It was created by Phil Zimmermann in 1991.
GNU make a product which useful for PGP and its name is GPG (GNU Private Guard).
How make a PGP to our Mail?
We need install some aplication which work for it. Some example of that aplications are : GPG4WIN (aplication for windows), Kleopatra (aplication for Linux), and act.
Ok, let's try make it at our Linux, in this time i want to configure it in Linux with KDE xwindows.
- We will install kleopatra in our Linux with command :
# apt-get install kleopatra
- In order to kleopatra can run, we must install the plugin to kleopatra with command :
# apt-get install libakonadi-contact4
- After that konfigure a new GPG from terminal with command :
# gpg --gen-key
(at that commend will showed like this)
gpg (GnuPG) 1.4.10; Copyright (C) 2008 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
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)
Your selection? 1
(1 is my choosing cause that is a default)
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048)
(just click enter as default choose)
Requested keysize is 2048 bits
Please specify how long the key should be valid.
0 = 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? (0)
(o is the chose without limit time)
Key does not expire at all
Is this correct? (y/N) y
You need a user ID to identify your key; the software constructs the user ID
from the Real Name, Comment and Email Address in this form:
"Heinrich Heine (Der Dichter) <heinrichh@duesseldorf.de>"
Real name: Mabrur Habib
Email address: cikumel@gmail.com
Comment: It's my PGP
You selected this USER-ID:
"Mabrur Habib (It's my PGP) <cikumel@gmail.com>"
(at that pessage fill up with your real data)
Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o
You need a Passphrase to protect your secret key.
gpg: gpg-agent is not available in this session
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
Not enough random bytes available. Please do some other work to give
the OS a chance to collect more entropy! (Need 281 more bytes)
........+++++
+++++
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
....+++++
+++++
gpg: key AB8E4F36 marked as ultimately trusted
public and secret key created and signed.
gpg: checking the trustdb
gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model
gpg: depth: 0 valid: 2 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 2u
pub 2048R/AB8E4F36 2011-05-31
Key fingerprint = 809B2231 0D81 2C95 2246 K834 5042 4647 AB8E 4F36
uid Preketek (It's my PGP) <kumel@gmail.com>
sub 2048R/39502452 2011-05-31
- To show your id public pgp with command :
# gpg -k
(that command will showed)
/root/.gnupg/pubring.gpg
------------------------
pub 2048R/AB8E4F36 2011-05-31
uid Mabrur Habib (It's my PGP) <cikumel@gmail.com>
sub 1024Z/98702452 2011-05-31
- Send you public key with command :
# gpg --send-keys AB8E4F36
gpg: sending key AB8E4F36 to hkp server keys.gnupg.net
(AB8E4F36 is your public key)
- Install thunderbird and enigmail
# apt-get install thunderbird
# apt-get install enigmail
Run thunderbird, klick OpenPGP and configure that with step-by-step
Identity Providers for RedTeamers
9 months ago
0 comments:
Post a Comment