Microsoft Windows XP [Version 5.1.2600] Directory of U:\331 12/02/2010 06:02 PM 1,625,916 gnupg-w32cli-1.4.11.exe 1 File(s) 1,625,916 bytes 0 Dir(s) 290,499,289,088 bytes free U:\331 >gnupg-w32cli-1.4.11.exe U:\331 >c: C:\ >cd "Program Files\GNU\GnuPG" C:\Program Files\GNU\GnuPG >dir Volume in drive C has no label. Volume Serial Number is A80A-15A2 Directory of C:\Program Files\GNU\GnuPG 12/02/2010 06:03 PM . 12/02/2010 06:03 PM .. 12/02/2010 06:03 PM Doc 12/02/2010 06:03 PM gnupg.nls 10/18/2010 04:04 AM 969,216 gpg.exe 10/18/2010 04:04 AM 70,144 gpgkeys_curl.exe 10/18/2010 04:04 AM 60,928 gpgkeys_finger.exe 10/18/2010 04:04 AM 74,752 gpgkeys_hkp.exe 10/18/2010 04:04 AM 32,256 gpgkeys_ldap.exe 10/18/2010 04:04 AM 130,560 gpgsplit.exe 10/18/2010 04:04 AM 417,280 gpgv.exe 09/02/2009 03:43 AM 892,928 iconv.dll 12/02/2010 06:03 PM Src 12/02/2010 06:03 PM 69,856 uninst-gnupg.exe 9 File(s) 2,717,920 bytes 5 Dir(s) 14,032,191,488 bytes free C:\Program Files\GNU\GnuPG >gpg --gen-key gpg (GnuPG) 1.4.11; Copyright (C) 2010 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. gpg: keyring `C:/Documents and Settings/NTUser/Application Data/gnupg\secring.gp g' created gpg: keyring `C:/Documents and Settings/NTUser/Application Data/gnupg\pubring.gp g' created 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 RSA keys may be between 1024 and 4096 bits long. What keysize do you want? (2048) Requested keysize is 2048 bits Please specify how long the key should be valid. 0 = key does not expire = key expires in n days w = key expires in n weeks m = key expires in n months y = key expires in n years Key is valid for? (0) 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) " Real name: AH1 Name must be at least 5 characters long Real name: Andy1 Email address: aharrin@luc.edu Comment: test1 You selected this USER-ID: "Andy1 (test1) " 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. ...+++++ .+++++ 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: C:/Documents and Settings/NTUser/Application Data/gnupg\trustdb.gpg: trustd b created gpg: key CDE7F584 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 pub 2048R/CDE7F584 2010-12-03 Key fingerprint = A26C 9516 7AB7 50FC 1DC7 4894 C96F BE7F CDE7 F584 uid Andy1 (test1) sub 2048R/95CA2F3C 2010-12-03 C:\Program Files\GNU\GnuPG >gpg --gen-key gpg (GnuPG) 1.4.11; Copyright (C) 2010 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 RSA keys may be between 1024 and 4096 bits long. What keysize do you want? (2048) Requested keysize is 2048 bits Please specify how long the key should be valid. 0 = key does not expire = key expires in n days w = key expires in n weeks m = key expires in n months y = key expires in n years Key is valid for? (0) 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) " Real name: Andy2 Email address: anharrington@gmail.com Comment: test2 You selected this USER-ID: "Andy2 (test2) " 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. ...+++++ ..+++++ 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 841161A3 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/841161A3 2010-12-03 Key fingerprint = 08A0 6EE4 B988 D14A CDED 09F5 29C7 3006 8411 61A3 uid Andy2 (test2) sub 2048R/9A41AA68 2010-12-03 C:\Program Files\GNU\GnuPG >echo Plastics! > private.txt C:\Program Files\GNU\GnuPG >type private.txt Plastics! C:\Program Files\GNU\GnuPG >gpg -u andy1 -r Andy2 -o private.txt.asc --armor --s ign --encrypt private.txt You need a passphrase to unlock the secret key for user: "Andy1 (test1) " 2048-bit RSA key, ID CDE7F584, created 2010-12-03 C:\Program Files\GNU\GnuPG >dir /od Volume in drive C has no label. Volume Serial Number is A80A-15A2 Directory of C:\Program Files\GNU\GnuPG 09/02/2009 03:43 AM 892,928 iconv.dll 10/18/2010 04:04 AM 417,280 gpgv.exe 10/18/2010 04:04 AM 130,560 gpgsplit.exe 10/18/2010 04:04 AM 74,752 gpgkeys_hkp.exe 10/18/2010 04:04 AM 969,216 gpg.exe 10/18/2010 04:04 AM 70,144 gpgkeys_curl.exe 10/18/2010 04:04 AM 60,928 gpgkeys_finger.exe 10/18/2010 04:04 AM 32,256 gpgkeys_ldap.exe 12/02/2010 06:03 PM gnupg.nls 12/02/2010 06:03 PM Doc 12/02/2010 06:03 PM Src 12/02/2010 06:03 PM 69,856 uninst-gnupg.exe 12/02/2010 06:10 PM 12 private.txt 12/02/2010 06:16 PM .. 12/02/2010 06:16 PM . 12/02/2010 06:16 PM 1,011 private.txt.asc 11 File(s) 2,718,943 bytes 5 Dir(s) 14,031,953,920 bytes free C:\Program Files\GNU\GnuPG >gpg -u Andy2 ren private.txt private1.txt usage: gpg [options] [filename] C:\Program Files\GNU\GnuPG >ren private.txt private1.txt C:\Program Files\GNU\GnuPG >gpg -u Andy2 private.txt.asc You need a passphrase to unlock the secret key for user: "Andy2 (test2) " 2048-bit RSA key, ID 9A41AA68, created 2010-12-03 (main key ID 841161A3) gpg: encrypted with 2048-bit RSA key, ID 9A41AA68, created 2010-12-03 "Andy2 (test2) " gpg: Signature made 12/02/10 18:16:11 using RSA key ID CDE7F584 gpg: Good signature from "Andy1 (test1) " C:\Program Files\GNU\GnuPG >type private.txt Plastics! C:\Program Files\GNU\GnuPG >