PGP under MS Windows

Following is the quick and dirty tip on how to get PGP running under MS Windows 95, and you should try at your own risk. You should never be lazy in reading the original document which came with the source pack.

  1. GETTING PGP

    US Citizens: Get Phil Zimmermann's PGP 2.6.2 from the following sites.
    There's PGP for MS Windows 5.0 in the site, but I've never used it and can't comment about it.

    ftp://net-dist.mit.edu/pub/PGP/
    http://web.mit.edu/network/pgp.html

    Non-US Citizens: You should obtain PGP from a site outside the USA.

    http://www.mantis.co.uk/pgp/pgp.html
    http://www.ifi.uio.no/pgp/

  2. GETTING PGP QUICKSTART FOR MS WINDOWS USERS

    PGP QuickStart is a PGP install program for MS Windows users, and get it from

    http://www.eskimo.com/~joelm/tools.html.

  3. GENERATING YOUR PGP KEY PAIR

    At the DOS prompt type: pgp -kg.

    1. Pick your RSA key size: Size 2 [768 bits - High commercial grade] is suggested.
    2. Enter a user ID for your public key: Type your full name followed by your E-mail address in <angle brackets>, (eg. Daniel Shinwon Kim <dskim@ocf.berkeley.edu>)
    3. Enter pass phrase: (to protect your secret key) such as "I'm entering a senetence for pgp key".
      Note:1) The phrase is case-sensitive.
      2) This phrase is the one you type EVERY time you sign a PGP message.
    4. We need to generate ___ random bits: Type reandom keystrokes.

    C:\pgp\secring.pgp holds your Secret keyring.
    C:\pgp\pubring.pgp holds your Public keyring.

    To view or verify your keyring, type:
    pgp -kv.

  4. SIGNING YOUR KEY

    At the DOS prompt type:
    pgp -ks userID.

  5. EXTRACTING A COPY OF YOUR KEY TO A KEYFILE

    You must give them your public key to allow others to send you encrypted messages. To do this, you should extract a copy of your key to an ascii keyfile (eg. dskimkey.asc).
    At the DOS prompt type:
    pgp -kxa userID keyfile
    (eg. pgp -kxa Shinwon dskimkey.asc).

  6. REGISTERING YOUR PUBLIC KEY

    Submit your public key to http://www-swiss.ai.mit.edu/~bal/pks-commands.html to exchange public keys with other PGP users.

  7. OBTAINING A PERSON'S PUBLIC KEY

    Go to http://www-swiss.ai.mit.edu/~bal/pks-commands.html to get recepient's PGP Public key to send a message encrypted with PGP to a person. But chances are:
    1) Your friend's PGP Key is quoted in emails already.
    2) Your friend's Web site has a PGP Key Block quoted.
    Copy and paste the KEY BLOCK into a text editor and save it as a keyfile using the same keyfile naming convention as you used above.
    Below is a copy of my PGP Key Block
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: 2.6.2
    
    mQBtAzQUvv8AAAEDALThx9g6jtCkrCeQ25ryetyZHX0m/lTkikItp1JECsZNhK5M
    xouPXDEsKVgb9dCR+f5+/D496rBajJaHh4HtW0BO6rWt9T+e4iyOc9m4i3S9jrnB
    c/EyD7JP6/A1MqkWfQAFEbQrRGFuaWVsIFNoaW53b24gS2ltIDxkc2tpbUBvY2Yu
    YmVya2VsZXkuZWR1Pg==
    =jkJb
    -----END PGP PUBLIC KEY BLOCK-----
    
  8. ADDING A PERSON'S KEY TO YOUR PUBLIC KEYRING

    After you receive an individual's public key, you must add that person's key to your public keyring (pubring.asc), so that PGP can use it.

    To add, type at the DOS prompt:
    pgp -ka keyfile.

    To view your key ring:
    pgp -kv.

  9. ENCRYPTING A MESSAGE

    Type a message with a text editor and save it as an ascii file, message.txt.

    To sign a message with your secret key:
    pgp -s message.txt

    To encrypt a message with the recipient's public key:
    pgp -e message.txt recipientID

    To encrypt and sign your message with the recipient's public keyd :
    pgp -seat message.txt senderID recipientID

    Type in your pass phrase when asked.

    The program will then state: Transport armor file: message.asc (where message.asc is the encrypted ascii file that you will e-mail to your friend.)

  10. SIGNING A MESSAGE

    Signing a plaintext message with my secret key and having the output readable by the people without running PGP first, is my favorite way of sending message in most cases.
    pgp -sta message.txt
    Following is the output:
    -----BEGIN PGP SIGNED MESSAGE-----
    
    This is a test of PGP signed message readable by people.
    
    -----BEGIN PGP SIGNATURE-----
    Version: 2.6.2
    
    iQB1AwUBNBTKBU/r8DUyqRZ9AQHxdQL/YGqor9+2BaZGyH4/U+M+plyWdOGMg5zT
    2ksaGm3UapNEEGfg9qvfPRrq8b2C9UvXEBX69plKEOOC8TYz0/gZ51d8j9+p5McB
    N4OCNF1k6a3kEj5HPdz/pJjMvVkUvScN
    =f2N4
    -----END PGP SIGNATURE-----
    
  11. SENDING AN ENCRYPTED MESSAGE AS E-MAIL

    Open the encrypted ascii file, message.asc, with your text editor. Copy/paste the entire PGP MESSAGE block into your e-mail client, then send your e-mail in the usual way.
    Below is an example of a PGP message.
    -----BEGIN PGP MESSAGE-----
    Version: 2.6.2
    
    hGwDT+vwNTKpFn0BAv9OA9zpVq0RJNpmJ6k+wsSOuOslKYyKWNsyd2/dqr8Py2ro
    G6ZURfk7Ub+x7IBke2Y1dN2ybztpkErkuwthDd2amDbHV3CIzs0Q/SFkJRSW6dvF
    UUambTIZawW+oYdM9BKmAAAAtgBI70dEpwnbZF3HFUgqF7g3sL/gplcBIQSslPIj
    waQwkzyyt5LmVbPU/ToHfM5S8D1bijogg1y1afBvsr1qIvjqzw+skIQKzbgkbRSR
    4uNCidg2LOFk7sgChHdroJWsV0jHZ9JxQxO1kNjjfhG3g2g7Pwh0kI7XhG36I3+t
    85ApOq64s/hVXn5DMxU4n5HGhTo6XZIvf5MLqt5oSdkleY2t/KF0tlGR/qrf9OKp
    Skjm14W1R6h5
    =j5Tk
    -----END PGP MESSAGE-----
    
  12. DECRYPTING AN ENCRYPTED E-MAIL MESSAGE

    Save an encrypted message as message.asc, and type:
    pgp message.asc -o message.txt.
    You will be asked for your secret pass phrase to decrypt the message. After creating the file "message.txt", read it in a text editor.

  13. PGP TOOLS

    PGPfone: for encrypting a Phone/PC conversations
    PGP Windows Front-End: for Windows Tools
    PGP DOS Shell: for DOS Tools
    Private Idaho: for incorporating PGP with your e-mail client
    PgpEudra for PGP extension to Eudora.

  14. MORE REFERENCES ON THE NET

    MIT PGP | International PGP Homepage | Red Hat Crypto Archive

    PGP & Remailer | PGP Jump Start


Copyright(c) 1995-1998 Daniel SW Kim. All Rights Reserved
Last modified on January 20, 1998