Assignment No. 9: Problem Definition: Implementation of Email Security Using PGP/GPG (Create

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

Assignment No.

Problem Definition : Implementation of email security using PGP/GPG (create


yourself a 1024-bit gpg key. Use your name and email
address for your key label. Use gpg to verify the signature
of this assignment.)

Roll No. : 4134

Batch : B

linux-salil:/home/sem II # gpg --gen-key


gpg (GnuPG) 1.4.5; Copyright (C) 2006 Free Software Foundation, Inc.
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions. See the file COPYING for details.

Please select what kind of key you want:


(1) DSA and Elgamal (default)
(2) DSA (sign only)
(5) RSA (sign only)
Your selection? 1
DSA keypair will have 1024 bits.
ELG-E keys may be between 1024 and 4096 bits long.
What keysize do you want? (2048) 1024
Requested keysize is 1024 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) <1>
invalid value
Key is valid for? (0) 1
Key expires at Thu Apr 17 08:54:21 2008 IST
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) <[email protected]>"

Real name: ssvp_PICT


Email address: [email protected]
Comment: This is ssvp's Comment
You selected this USER-ID:
"ssvp_PICT (This is ssvp's Comment) <[email protected]>"

Change (N)ame, (C)omment, (E)mail or (O)kay/(Q)uit? o


You need a Passphrase to protect your secret key.

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.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++..++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+..+++++>++++++++++.............................+++++
asasaffasfasasfsafsafasassaffassassasssaffsafsaasfssfsfsasfsssaasasWe 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 A0ED6294 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: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: next trustdb check due at 2008-04-17
pub 1024D/A0ED6294 2008-04-16 [expires: 2008-04-17]
Key fingerprint = 50BC 666C 1153 99D0 610B 392B F3C6 D6FB A0ED 6294
uid ssvp_PICT (This is ssvp's Comment) <[email protected]>
sub 1024g/CCD7E1AD 2008-04-16 [expires: 2008-04-17]

linux-salil:/home/sem II # gpg --list-keys


/root/.gnupg/pubring.gpg
------------------------
pub 1024D/9C800ACA 2000-10-19 [expires: 2008-06-21]
uid SuSE Package Signing Key <[email protected]>
sub 2048g/8495160C 2000-10-19 [expires: 2008-06-21]

pub 1024R/307E3D54 2006-03-21 [expires: 2008-06-21]


uid SuSE Package Signing Key <[email protected]>

pub 1024D/A0ED6294 2008-04-16 [expires: 2008-04-17]


uid ssvp_PICT (This is ssvp's Comment) <[email protected]>
sub 1024g/CCD7E1AD 2008-04-16 [expires: 2008-04-17]
-------------------------------------------------------------------------------
The Contents of the File forGPG.txt : ->

this is a test file


for gpg
e-mail security
-------------------------------------------------------------------------------

linux-salil:/home/sem II # gpg --output doc.sig --sign forGPG.txt

You need a passphrase to unlock the secret key for


user: "ssvp_PICT (This is ssvp's Comment) <[email protected]>"
1024-bit DSA key, ID A0ED6294, created 2008-04-16
-------------------------------------------------------------------------------

linux-salil:/home/sem II # gpg --output forGPG_afterDecrypt --decrypt doc.sig


gpg: Signature made Wed Apr 16 08:58:04 2008 IST using DSA key ID A0ED6294
gpg: Good signature from "ssvp_PICT (This is ssvp's Comment) <[email protected]>"

The Contents of the File forGPG_afterDecrypt.txt : ->

this is a test file


for gpg
e-mail security
-------------------------------------------------------------------------------

You might also like