home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / p / pgp22.zip / DOC / PGPDOC1.DOC < prev    next >
Text File  |  1993-03-07  |  87KB  |  1,775 lines

  1.  
  2.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am             Page 1
  3.  
  4.  
  5.                           Phil's Pretty Good Software
  6.                                     Presents
  7.       
  8.                                       ===
  9.                                       PGP
  10.                                       ===
  11.       
  12.                               Pretty Good Privacy
  13.                       Public Key Encryption for the Masses
  14.       
  15.       
  16.                            --------------------------
  17.                                 PGP User's Guide
  18.                            Volume I: Essential Topics
  19.                            --------------------------
  20.                               by Philip Zimmermann
  21.                                 Revised 6 Mar 93
  22.       
  23.       
  24.                            PGP Version 2.2 - 6 Mar 93
  25.                                   Software by
  26.                                Philip Zimmermann
  27.                                       with
  28.                 Branko Lankester, Hal Finney, and Peter Gutmann
  29.       
  30.       
  31.       
  32.       
  33.      Synopsis:  PGP uses public-key encryption to protect E-mail and data
  34.      files.  Communicate securely with people you've never met, with no
  35.      secure channels needed for prior exchange of keys.  PGP is well
  36.      featured and fast, with sophisticated key management, digital
  37.      signatures, data compression, and good ergonomic design.
  38.       
  39.       
  40.      Software and documentation (c) Copyright 1990-1992 Philip Zimmermann. 
  41.      For information on PGP licensing, distribution, copyrights, patents,
  42.      trademarks, liability limitations, and export controls, see the
  43.      "Legal Issues" section in the "PGP User's Guide, Volume II: Special
  44.      Topics".
  45.       
  46.       
  47.  
  48.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am             Page 2
  49.  
  50.  
  51.       
  52.      Contents
  53.      ========
  54.       
  55.      Quick Overview
  56.      Why Do You Need PGP?
  57.      How it Works
  58.      Installing PGP
  59.      How to Use PGP
  60.        To See a Usage Summary
  61.        Encrypting a Message
  62.        Encrypting a Message to Multiple Recipients
  63.        Signing a Message
  64.        Signing and then Encrypting
  65.        Using Just Conventional Encryption
  66.        Decrypting and Checking Signatures
  67.        Managing Keys
  68.          RSA Key Generation
  69.          Adding a Key to Your Key Ring
  70.          Removing a Key or User ID from Your Key Ring
  71.          Extracting (copying) a Key from Your Key Ring
  72.          Viewing the Contents of Your Key Ring
  73.          How to Protect Public Keys from Tampering
  74.          How Does PGP Keep Track of Which Keys are Valid?
  75.          How to Protect Secret Keys from Disclosure
  76.          Revoking a Public Key
  77.          What If You Lose Your Secret Key?
  78.      Advanced Topics
  79.        Sending Ciphertext Through E-mail Channels: Radix-64 Format
  80.        Environmental Variable for Path Name
  81.        Setting Configuration Parameters: CONFIG.TXT
  82.      Vulnerabilities
  83.      Beware of Snake Oil
  84.      PGP Quick Reference
  85.      Legal Issues
  86.      Acknowledgments
  87.      About the Author
  88.       
  89.       
  90.  
  91.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am             Page 3
  92.  
  93.  
  94.       
  95.      Quick Overview
  96.      =============
  97.       
  98.      Pretty Good(tm) Privacy (PGP), from Phil's Pretty Good Software, is a
  99.      high security cryptographic software application for MSDOS, Unix,
  100.      VAX/VMS, and other computers.  PGP allows people to exchange files or
  101.      messages with privacy, authentication, and convenience.  Privacy
  102.      means that only those intended to receive a message can read it. 
  103.      Authentication means that messages that appear to be from a
  104.      particular person can only have originated from that person. 
  105.      Convenience means that privacy and authentication are provided
  106.      without the hassles of managing keys associated with conventional
  107.      cryptographic software.  No secure channels are needed to exchange
  108.      keys between users, which makes PGP much easier to use.  This is
  109.      because PGP is based on a powerful new technology called "public key"
  110.      cryptography.  
  111.       
  112.      PGP combines the convenience of the Rivest-Shamir-Adleman (RSA)
  113.      public key cryptosystem with the speed of conventional cryptography,
  114.      message digests for digital signatures, data compression before
  115.      encryption, good ergonomic design, and sophisticated key management. 
  116.      And PGP performs the public-key functions faster than most other
  117.      software implementations.  PGP is public key cryptography for the
  118.      masses.
  119.       
  120.      PGP does not provide any built-in modem communications capability. 
  121.      You must use a separate software product for that.
  122.       
  123.      This document, "Volume I: Essential Topics", only explains the
  124.      essential concepts for using PGP, and should be read by all PGP
  125.      users.  "Volume II: Special Topics" covers the advanced features of
  126.      PGP and other special topics, and may be read by more serious PGP
  127.      users.  Neither volume explains the underlying technology details of
  128.      cryptographic algorithms and data structures.  
  129.       
  130.       
  131.  
  132.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am             Page 4
  133.  
  134.  
  135.       
  136.      Why Do You Need PGP?
  137.      ====================
  138.       
  139.      It's personal.  It's private.  And it's no one's business but yours.
  140.      You may be planning a political campaign, discussing your taxes, or
  141.      having an illicit affair.  Or you may be doing something that you
  142.      feel shouldn't be illegal, but is.  Whatever it is, you don't want
  143.      your private electronic mail (E-mail) or confidential documents read
  144.      by anyone else.  There's nothing wrong with asserting your privacy. 
  145.      Privacy is as apple-pie as the Constitution.  
  146.       
  147.      Perhaps you think your E-mail is legitimate enough that encryption is
  148.      unwarranted.  If you really are a law-abiding citizen with nothing to
  149.      hide, then why don't you always send your paper mail on postcards? 
  150.      Why not submit to drug testing on demand?  Why require a warrant for
  151.      police searches of your house?  Are you trying to hide something? 
  152.      You must be a subversive or a drug dealer if you hide your mail
  153.      inside envelopes.  Or maybe a paranoid nut.  Do law-abiding citizens
  154.      have any need to encrypt their E-mail?
  155.       
  156.      What if everyone believed that law-abiding citizens should use
  157.      postcards for their mail?  If some brave soul tried to assert his
  158.      privacy by using an envelope for his mail, it would draw suspicion. 
  159.      Perhaps the authorities would open his mail to see what he's hiding. 
  160.      Fortunately, we don't live in that kind of world, because everyone
  161.      protects most of their mail with envelopes.  So no one draws suspicion
  162.      by asserting their privacy with an envelope.  There's safety in
  163.      numbers.  Analogously, it would be nice if everyone routinely used
  164.      encryption for all their E-mail, innocent or not, so that no one drew
  165.      suspicion by asserting their E-mail privacy with encryption.  Think
  166.      of it as a form of solidarity.
  167.       
  168.      Today, if the Government wants to violate the privacy of ordinary
  169.      citizens, it has to expend a certain amount of expense and labor to
  170.      intercept and steam open and read paper mail, and listen to and
  171.      possibly transcribe spoken telephone conversation.  This kind of
  172.      labor-intensive monitoring is not practical on a large scale.  This
  173.      is only done in important cases when it seems worthwhile. 
  174.       
  175.      More and more of our private communications are being routed through
  176.      electronic channels.  Electronic mail will gradually replace
  177.      conventional paper mail.  E-mail messages are just too easy to
  178.      intercept and scan for interesting keywords.  This can be done
  179.      easily, routinely, automatically, and undetectably on a grand scale. 
  180.      International cablegrams are already scanned this way on a large
  181.      scale by the NSA. 
  182.       
  183.      We are moving toward a future when the nation will be crisscrossed
  184.      with high capacity fiber optic data networks linking together all our
  185.      increasingly ubiquitous personal computers.  E-mail will be the norm
  186.      for everyone, not the novelty it is today.  Perhaps the Government
  187.      will protect our E-mail with Government-designed encryption 
  188.      protocols.  Probably most people will trust that.  But perhaps some
  189.      people will prefer their own protective measures.
  190.       
  191.  
  192.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am             Page 5
  193.  
  194.  
  195.      Senate Bill 266, a 1991 omnibus anti-crime bill, had an unsettling
  196.      measure buried in it.  If this non binding resolution had become real
  197.      law, it would have forced manufacturers of secure communications
  198.      equipment to insert special "trap doors" in their products, so that
  199.      the Government can read anyone's encrypted messages.  It reads:  "It
  200.      is the sense of Congress that providers of electronic communications
  201.      services and manufacturers of electronic communications service
  202.      equipment shall insure that communications systems permit the
  203.      Government to obtain the plain text contents of voice, data, and
  204.      other communications when appropriately authorized by law."  This
  205.      measure was defeated after rigorous protest from civil libertarians
  206.      and industry groups.  But the Government has since introduced other
  207.      disturbing legislation to work toward similar objectives.
  208.       
  209.      If privacy is outlawed, only outlaws will have privacy.  Intelligence
  210.      agencies have access to good cryptographic technology.  So do the big
  211.      arms and drug traffickers.  So do defense contractors, oil companies,
  212.      and other corporate giants.  But ordinary people and grassroots
  213.      political organizations mostly have not had access to affordable
  214.      "military grade" public-key cryptographic technology.  Until now.
  215.       
  216.      PGP empowers people to take their privacy into their own hands.  
  217.      There's a growing social need for it.  That's why I wrote it.
  218.       
  219.       
  220.  
  221.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am             Page 6
  222.  
  223.  
  224.       
  225.      How it Works
  226.      ============
  227.       
  228.      It would help if you were already familiar with the concept of
  229.      cryptography in general and public key cryptography in particular. 
  230.      Nonetheless, here are a few introductory remarks about public key
  231.      cryptography.
  232.       
  233.      First, some elementary terminology.  Suppose I want to send you a
  234.      message, but I don't want anyone but you to be able to read it.  I
  235.      can "encrypt", or "encipher" the message, which means I scramble it
  236.      up in a hopelessly complicated way, rendering it unreadable to anyone
  237.      except you, the intended recipient of the message.  I supply a
  238.      cryptographic "key" to encrypt the message, and you have to use the
  239.      same key to decipher or "decrypt" it.  At least that's how it works
  240.      in conventional "single-key" cryptosystems.
  241.       
  242.      In conventional cryptosystems, such as the US Federal Data Encryption
  243.      Standard (DES), a single key is used for both encryption and
  244.      decryption.  This means that a key must be initially transmitted via
  245.      secure channels so that both parties can know it before encrypted
  246.      messages can be sent over insecure channels.  This may be
  247.      inconvenient.  If you have a secure channel for exchanging keys, then
  248.      why do you need cryptography in the first place?
  249.       
  250.      In public key cryptosystems, everyone has two related complementary
  251.      keys, a publicly revealed key and a secret key.  Each key unlocks the
  252.      code that the other key makes.  Knowing the public key does not help
  253.      you deduce the corresponding secret key.  The public key can be
  254.      published and widely disseminated across a communications network.
  255.      This protocol provides privacy without the need for the same kind of
  256.      secure channels that a conventional cryptosystem requires.
  257.       
  258.      Anyone can use a recipient's public key to encrypt a message to that
  259.      person, and that recipient uses her own corresponding secret key to
  260.      decrypt that message.  No one but the recipient can decrypt it,
  261.      because no one else has access to that secret key.  Not even the
  262.      person who encrypted the message can decrypt it.  
  263.       
  264.      Message authentication is also provided.  The sender's own secret key
  265.      can be used to encrypt a message, thereby "signing" it.  This creates
  266.      a digital signature of a message, which the recipient (or anyone
  267.      else) can check by using the sender's public key to decrypt it.  This
  268.      proves that the sender was the true originator of the message, and
  269.      that the message has not been subsequently altered by anyone else,
  270.      because the sender alone possesses the secret key that made that
  271.      signature.  Forgery of a signed message is infeasible, and the sender
  272.      cannot later disavow his signature. 
  273.       
  274.      These two processes can be combined to provide both privacy and
  275.      authentication by first signing a message with your own secret key,
  276.      then encrypting the signed message with the recipient's public key. 
  277.      The recipient reverses these steps by first decrypting the message
  278.      with her own secret key, then checking the enclosed signature with
  279.      your public key.  These steps are done automatically by the
  280.  
  281.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am             Page 7
  282.  
  283.  
  284.      recipient's software.
  285.       
  286.      Because the public key encryption algorithm is much slower than
  287.      conventional single-key encryption, encryption is better accomplished
  288.      by using a high-quality fast conventional single-key encryption
  289.      algorithm to encipher the message.  This original unenciphered
  290.      message is called "plaintext".  In a process invisible to the user, a
  291.      temporary random key, created just for this one "session", is used to
  292.      conventionally encipher the plaintext file.  Then the recipient's
  293.      public key is used to encipher this temporary random conventional
  294.      key.  This public-key-enciphered conventional "session" key is sent
  295.      along with the enciphered text (called "ciphertext") to the
  296.      recipient.  The recipient uses her own secret key to recover this
  297.      temporary session key, and then uses that key to run the fast
  298.      conventional single-key algorithm to decipher the large ciphertext 
  299.      message.
  300.       
  301.      Public keys are kept in individual "key certificates" that include
  302.      the key owner's user ID (which is that person's name), a timestamp of
  303.      when the key pair was generated, and the actual key material.  Public
  304.      key certificates contain the public key material, while secret key
  305.      certificates contain the secret key material.  Each secret key is
  306.      also encrypted with its own password, in case it gets stolen.  A key
  307.      file, or "key ring" contains one or more of these key certificates. 
  308.      Public key rings contain public key certificates, and secret key
  309.      rings contain secret key certificates.  
  310.       
  311.      The keys are also internally referenced by a "key ID", which is an 
  312.      "abbreviation" of the public key (the least significant 64 bits of 
  313.      the large public key).  When this key ID is displayed, only the lower
  314.      24 bits are shown for further brevity.  While many keys may share the
  315.      same user ID, for all practical purposes no two keys share the same
  316.      key ID.  
  317.       
  318.      PGP uses "message digests" to form signatures.  A message digest is a
  319.      128-bit cryptographically strong one-way hash function of the
  320.      message.  It is somewhat analogous to a "checksum" or CRC error
  321.      checking code, in that it compactly "represents" the message and is
  322.      used to detect changes in the message.  Unlike a CRC, however, it is
  323.      computationally infeasible for an attacker to devise a substitute
  324.      message that would produce an identical message digest.  The message
  325.      digest gets encrypted by the secret key to form a signature.  
  326.       
  327.      Documents are signed by prefixing them with signature certificates,
  328.      which contain the key ID of the key that was used to sign it, a
  329.      secret-key-signed message digest of the document, and a timestamp of
  330.      when the signature was made.  The key ID is used by the receiver to
  331.      look up the sender's public key to check the signature.  The
  332.      receiver's software automatically looks up the sender's public key
  333.      and user ID in the receiver's public key ring.
  334.       
  335.      Encrypted files are prefixed by the key ID of the public key used to
  336.      encrypt them.  The receiver uses this key ID message prefix to look
  337.      up the secret key needed to decrypt the message.  The receiver's 
  338.      software automatically looks up the necessary secret decryption key 
  339.      in the receiver's secret key ring.
  340.  
  341.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am             Page 8
  342.  
  343.  
  344.       
  345.      These two types of key rings are the principal method of storing and
  346.      managing public and secret keys.  Rather than keep individual keys in
  347.      separate key files, they are collected in key rings to facilitate the
  348.      automatic lookup of keys either by key ID or by user ID.  Each user
  349.      keeps his own pair of key rings.  An individual public key is
  350.      temporarily kept in a separate file long enough to send to your
  351.      friend who will then add it to her key ring.
  352.       
  353.       
  354.       
  355.      Installing PGP
  356.      ==============
  357.       
  358.      The MSDOS PGP 2.2 release comes in a compressed archive file called
  359.      PGP22.ZIP (each new release will have a name in the form "PGPxy.ZIP"
  360.      for PGP version number x.y).  The archive can be decompressed with
  361.      the MSDOS shareware decompression utility PKUNZIP, or the Unix
  362.      utility "unzip".  The PGP release package contains a README.DOC file
  363.      that you should always read before installing PGP.  This README.DOC
  364.      file contains late-breaking news on what's new in this release of
  365.      PGP, as well as information on what's in all the other files included
  366.      in the release.
  367.       
  368.      If you already have PGP version 1.0 for MSDOS, you should probably
  369.      delete it, because no one else uses it anymore.  If you don't want to
  370.      delete it, rename the old executable file to pgp1.exe, to avoid name
  371.      conflicts with the new PGP.
  372.       
  373.      To install PGP on your MSDOS system, you just have to copy the
  374.      compressed archive PGPxx.ZIP file into a suitable directory on your
  375.      hard disk (like C:\PGP), and decompress it with PKUNZIP.  For best
  376.      results, you will also modify your AUTOEXEC.BAT file, as described
  377.      elsewhere in this manual, but you can do that later, after you've
  378.      played with PGP a bit and read more of this manual.  If you haven't
  379.      run PGP before, the first step after installation (and reading this
  380.      manual) is to run the PGP key generation command "pgp -kg".
  381.       
  382.      Installing on Unix and VAX/VMS is generally similar to installing on
  383.      MSDOS, but you may have to compile the source code first.  A Unix
  384.      makefile is provided with the source release for this purpose.  
  385.       
  386.      For further details on installation, see the separate PGP
  387.      Installation Guide, in the file SETUP.DOC included with this
  388.      release.  It fully describes how to set up the PGP directory and your
  389.      AUTOEXEC.BAT file and how to use PKUNZIP to install it.
  390.       
  391.       
  392.       
  393.      How to Use PGP
  394.      ==============
  395.       
  396.       
  397.      To See a Usage Summary
  398.      ----------------------
  399.       
  400.  
  401.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am             Page 9
  402.  
  403.  
  404.      To see a quick command usage summary for PGP, just type:
  405.       
  406.          pgp -h
  407.       
  408.       
  409.       
  410.      Encrypting a Message
  411.      --------------------
  412.       
  413.      To encrypt a plaintext file with the recipient's public key, type:
  414.       
  415.          pgp -e textfile her_userid
  416.       
  417.      This command produces a ciphertext file called textfile.pgp.  A
  418.      specific example is:
  419.       
  420.          pgp -e letter.txt Alice
  421.      or:
  422.          pgp -e letter.txt "Alice S"
  423.       
  424.      The first example searches your public key ring file "pubring.pgp"
  425.      for any public key certificates that contain the string "Alice"
  426.      anywhere in the user ID field.  The second example would find any
  427.      user IDs that contain "Alice S".  You can't use spaces in the string
  428.      on the command line unless you enclose the whole string in quotes. 
  429.      The search is not case-sensitive.  If it finds a matching public key,
  430.      it uses it to encrypt the plaintext file "letter.txt", producing a
  431.      ciphertext file called "letter.pgp". 
  432.       
  433.      PGP attempts to compress the plaintext before encrypting it, thereby
  434.      greatly enhancing resistance to cryptanalysis.  Thus the ciphertext
  435.      file will likely be smaller than the plaintext file.
  436.       
  437.      If you want to send this encrypted message through E-mail channels,
  438.      convert it into printable ASCII "radix-64" format by adding the -a
  439.      option, as described later.
  440.       
  441.       
  442.       
  443.      Encrypting a Message to Multiple Recipients
  444.      -------------------------------------------
  445.       
  446.      If you want to send the same message to more than one person, you may
  447.      specify encryption for several recipients, any of whom may decrypt the
  448.      same ciphertext file.  To specify multiple recipients, just add more
  449.      user IDs to the command line, like so:
  450.       
  451.          pgp -e letter.txt Alice Bob Carol
  452.       
  453.      This would create a ciphertext file called letter.pgp that could be
  454.      decrypted by Alice or Bob or Carol.  Any number of recipients may be
  455.      specified.
  456.       
  457.       
  458.       
  459.      Signing a Message
  460.  
  461.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 10
  462.  
  463.  
  464.      -----------------
  465.       
  466.      To sign a plaintext file with your secret key, type:
  467.       
  468.          pgp -s textfile [-u your_userid]
  469.       
  470.      Note that [brackets] denote an optional field, so don't actually type
  471.      real brackets.  
  472.       
  473.      This command produces a signed file called textfile.pgp.  A specific 
  474.      example is:
  475.       
  476.          pgp -s letter.txt -u Bob
  477.       
  478.      This searches your secret key ring file "secring.pgp" for any secret
  479.      key certificates that contain the string "Bob" anywhere in the user
  480.      ID field.  The search is not case-sensitive.  If it finds a matching
  481.      secret key, it uses it to sign the plaintext file "letter.txt",
  482.      producing a signature file called "letter.pgp". 
  483.       
  484.      If you leave off the user ID field, the first key on your secret
  485.      key ring is used as the default secret key for your signature.
  486.       
  487.       
  488.       
  489.      Signing and then Encrypting
  490.      ---------------------------
  491.       
  492.      To sign a plaintext file with your secret key, and then encrypt it 
  493.      with the recipient's public key:
  494.       
  495.          pgp -es textfile her_userid [-u your_userid]
  496.       
  497.      Note that [brackets] denote an optional field, so don't actually type
  498.      real brackets.  
  499.       
  500.      This example produces a nested ciphertext file called textfile.pgp.
  501.      Your secret key to create the signature is automatically looked up in
  502.      your secret key ring via your_userid.  Her public encryption key is
  503.      automatically looked up in your public key ring via her_userid.  If
  504.      you leave off her user ID field from the command line, you will be 
  505.      prompted for it.
  506.       
  507.      If you leave off your own user ID field, the first key on your secret
  508.      key ring is be used as the default secret key for your signature.
  509.       
  510.      Note that PGP attempts to compress the plaintext before encrypting
  511.      it.
  512.       
  513.      If you want to send this encrypted message through E-mail channels,
  514.      convert it into printable ASCII "radix-64" format by adding the -a
  515.      option, as described later.
  516.       
  517.      Multiple recipients may be specified by adding more user IDs to the
  518.      command line.
  519.       
  520.  
  521.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 11
  522.  
  523.  
  524.       
  525.       
  526.      Using Just Conventional Encryption
  527.      ----------------------------------
  528.       
  529.      Sometimes you just need to encrypt a file the old-fashioned way, with
  530.      conventional single-key cryptography.  This approach is useful for
  531.      protecting archive files that will be stored but will not be sent to
  532.      anyone else.  Since the same person that encrypted the file will also
  533.      decrypt the file, public key cryptography is not really necessary. 
  534.       
  535.      To encrypt a plaintext file with just conventional cryptography,
  536.      type:
  537.       
  538.          pgp -c textfile
  539.       
  540.      This example encrypts the plaintext file called textfile, producing a
  541.      ciphertext file called textfile.pgp, without using public key
  542.      cryptography, key rings, user IDs, or any of that stuff.  It prompts
  543.      you for a pass phrase to use as a conventional key to encipher the
  544.      file.  This pass phrase need not be (and, indeed, SHOULD not be) the
  545.      same pass phrase that you use to protect your own secret key.  Note
  546.      that PGP attempts to compress the plaintext before encrypting it.  
  547.       
  548.      PGP will not encrypt the same plaintext the same way twice, even if
  549.      you used the same pass phrase every time.
  550.       
  551.       
  552.       
  553.      Decrypting and Checking Signatures
  554.      ----------------------------------
  555.       
  556.      To decrypt an encrypted file, or to check the signature integrity of a
  557.      signed file:
  558.       
  559.          pgp ciphertextfile [-o plaintextfile]
  560.       
  561.      Note that [brackets] denote an optional field, so don't actually type
  562.      real brackets.  
  563.       
  564.      The ciphertext file name is assumed to have a default extension of
  565.      ".pgp".  The optional plaintext output file name specifies where to
  566.      put processed plaintext output.  If no name is specified, the
  567.      ciphertext filename is used, with no extension.  If a signature is
  568.      nested inside of an encrypted file, it is automatically decrypted and
  569.      the signature integrity is checked.  The full user ID of the signer
  570.      is displayed.
  571.       
  572.      Note that the "unwrapping" of the ciphertext file is completely 
  573.      automatic, regardless of whether the ciphertext file is just signed,
  574.      just encrypted, or both.  PGP uses the key ID prefix in the
  575.      ciphertext file to automatically find the appropriate secret
  576.      decryption key on your secret key ring.  If there is a nested
  577.      signature, PGP then uses the key ID prefix in the nested signature to
  578.      automatically find the appropriate public key on your public key ring
  579.      to check the signature.  If all the right keys are already present on
  580.  
  581.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 12
  582.  
  583.  
  584.      your key rings, no user intervention is required, except that you
  585.      will be prompted for your password for your secret key if necessary. 
  586.      If the ciphertext file was conventionally encrypted without public
  587.      key cryptography, PGP recognizes this and prompts you for the pass
  588.      phrase to conventionally decrypt it.
  589.       
  590.       
  591.  
  592.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 13
  593.  
  594.  
  595.       
  596.      Managing Keys
  597.      =============
  598.       
  599.      Since the time of Julius Caesar, key management has always been the
  600.      hardest part of cryptography.  One of the principal distinguishing
  601.      features of PGP is its sophisticated key management.  
  602.       
  603.       
  604.       
  605.      RSA Key Generation
  606.      ------------------
  607.       
  608.      To generate your own unique public/secret key pair of a specified
  609.      size, type:  
  610.       
  611.          pgp -kg
  612.       
  613.      PGP shows you a menu of recommended key sizes (casual grade,
  614.      commercial grade, or military grade) and prompts you for what size
  615.      key you want, up to around a thousand bits.  The bigger the key, the
  616.      more security you get, but you pay a price in speed.  
  617.       
  618.      It also asks for a user ID, which means your name.  It's a good idea
  619.      to use your full name as your user ID, because then there is less
  620.      risk of other people using the wrong public key to encrypt messages
  621.      to you.  Spaces and punctuation are allowed in the user ID.  It would
  622.      help if you put your E-mail address in <angle brackets> after your
  623.      name, like so:
  624.        
  625.          Robert M. Smith <rms@xyzcorp.com>
  626.       
  627.      If you don't have an E-mail address, use your phone number or some
  628.      other unique information that would help ensure that your user ID is
  629.      unique.
  630.       
  631.      PGP also asks for a "pass phrase" to protect your secret key in case
  632.      it falls into the wrong hands.  Nobody can use your secret key file
  633.      without this pass phrase.  The pass phrase is like a password, except
  634.      that it can be a whole phrase or sentence with many words, spaces,
  635.      punctuation, or anything else you want in it.  Don't lose this pass
  636.      phrase-- there's no way to recover it if you do lose it.  This pass
  637.      phrase will be needed later every time you use your secret key.  The
  638.      pass phrase is case-sensitive, and should not be too short or easy to
  639.      guess.  It is never displayed on the screen.  Don't leave it written
  640.      down anywhere where someone else can see it, and don't store it on
  641.      your computer.  If you don't want a pass phrase (You fool!), just
  642.      press return (or enter) at the pass phrase prompt.
  643.       
  644.      The public/secret key pair is derived from large truly random numbers
  645.      derived from measuring the intervals between your keystrokes with a
  646.      fast timer.
  647.       
  648.      Note that RSA key generation is a VERY lengthy process.  It may take
  649.      a few seconds for a small key on a fast processor, or quite a few
  650.      minutes for a large key on an old IBM PC/XT.
  651.  
  652.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 14
  653.  
  654.  
  655.       
  656.      The generated key pair will be placed on your public and secret key
  657.      rings.  You can later use the -kx command option to extract (copy)
  658.      your new public key from your public key ring and place it in a
  659.      separate public key file suitable for distribution to your friends. 
  660.      The public key file can be sent to your friends for inclusion in
  661.      their public key rings.  Naturally, you keep your secret key file to
  662.      yourself, and you should include it on your secret key ring.  Each
  663.      secret key on a key ring is individually protected with its own pass
  664.      phrase.  
  665.       
  666.      Never give your secret key to anyone else.  For the same reason, don't
  667.      make key pairs for your friends.  Everyone should make their own key
  668.      pair.  Always keep physical control of your secret key, and don't risk
  669.      exposing it by storing it on a remote timesharing computer.  Keep it
  670.      on your own personal computer.
  671.       
  672.       
  673.       
  674.      Adding a Key to Your Key Ring
  675.      -----------------------------
  676.       
  677.      To add a public or secret key file's contents to your public or
  678.      secret key ring (note that [brackets] denote an optional field):
  679.       
  680.          pgp -ka keyfile [keyring]
  681.       
  682.      The keyfile extension defaults to ".pgp".  The optional keyring file
  683.      name defaults to "pubring.pgp" or "secring.pgp", depending on whether
  684.      the keyfile contains a public or a secret key.  You may specify a
  685.      different key ring file name, with the extension defaulting to
  686.      ".pgp".
  687.       
  688.      If the key is already on your key ring, PGP will not add it again. 
  689.      All of the keys in the keyfile are added to the keyring, except for
  690.      duplicates.  If the key being added has attached signatures
  691.      certifying it, the signatures are added with the key.  If the key is
  692.      already on your key ring, PGP just merges in any new certifying
  693.      signatures for that key that you don't already have on your key ring.
  694.       
  695.       
  696.       
  697.      Removing a Key or User ID from Your Key Ring
  698.      --------------------------------------------
  699.       
  700.      To remove a key or a user ID from your public key ring:
  701.       
  702.          pgp -kr userid [keyring]
  703.       
  704.      This searches for the specified user ID in your key ring, and removes
  705.      it if it finds a match.  Remember that any fragment of the user ID
  706.      will suffice for a match.  The optional keyring file name is assumed
  707.      to be literally "pubring.pgp".  It can be omitted, or you can specify
  708.      "secring.pgp" if you want to remove a secret key.  You may specify a
  709.      different key ring file name.  The default key ring extension is
  710.      ".pgp".
  711.  
  712.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 15
  713.  
  714.  
  715.       
  716.      If more than one user ID exists for this key, you will be asked if
  717.      you want to remove only the user ID you specified, while leaving the
  718.      key and its other user IDs intact.  
  719.       
  720.       
  721.       
  722.      Extracting (copying) a Key from Your Key Ring
  723.      ---------------------------------------------
  724.       
  725.      To extract (copy) a key from your public or secret key ring:
  726.       
  727.          pgp -kx userid keyfile [keyring]
  728.       
  729.      This non-destructively copies the key specified by the user ID from
  730.      your public or secret key ring to the specified key file.  This is
  731.      particularly useful if you want to give a copy of your public key to
  732.      someone else.
  733.       
  734.      If the key has any certifying signatures attached to it on your key
  735.      ring, they are copied off along with the key.
  736.       
  737.      If you want the extracted key represented in printable ASCII
  738.      characters suitable for email purposes, use the -kxa options.
  739.       
  740.       
  741.       
  742.      Viewing the Contents of Your Key Ring
  743.      -------------------------------------
  744.       
  745.      To view the contents of your public key ring:
  746.       
  747.          pgp -kv[v] [userid] [keyring] 
  748.       
  749.      This lists any keys in the key ring that match the specified user ID
  750.      substring.  If you omit the user ID, all of the keys in the key ring
  751.      are listed.  The optional keyring file name is assumed to be
  752.      "pubring.pgp".  It can be omitted, or you can specify "secring.pgp"
  753.      if you want to list secret keys.  If you want to specify a different
  754.      key ring file name, you can.  The default key ring extension is
  755.      ".pgp".  
  756.       
  757.      To see all the certifying signatures attached to each key, use the
  758.      -kvv option:
  759.       
  760.          pgp -kvv [userid] [keyring] 
  761.       
  762.      If you want to specify a particular key ring file name, but want to
  763.      see all the keys in it, try this alternative approach:
  764.       
  765.          pgp keyfile
  766.       
  767.      With no command options specified, PGP lists all the keys in
  768.      keyfile.pgp, and also attempts to add them to your key ring if they
  769.      are not already on your key ring.
  770.       
  771.  
  772.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 16
  773.  
  774.  
  775.       
  776.       
  777.      How to Protect Public Keys from Tampering
  778.      -----------------------------------------
  779.       
  780.      In a public key cryptosystem, you don't have to protect public keys
  781.      from exposure.  In fact, it's better if they are widely disseminated.
  782.      But it is important to protect public keys from tampering, to make
  783.      sure that a public key really belongs to whom it appears to belong to.
  784.      This may be the most important vulnerability of a public-key
  785.      cryptosystem.  Let's first look at a potential disaster, then at how
  786.      to safely avoid it with PGP.
  787.       
  788.      Suppose you wanted to send a private message to Alice.  You download
  789.      Alice's public key certificate from an electronic bulletin board
  790.      system (BBS).  You encrypt your letter to Alice with this public key
  791.      and send it to her through the BBS's E-mail facility.
  792.       
  793.      Unfortunately, unbeknownst to you or Alice, another user named
  794.      Charlie has infiltrated the BBS and generated a public key of his own
  795.      with Alice's user ID attached to it.  He covertly substitutes his
  796.      bogus key in place of Alice's real public key.  You unwittingly use
  797.      this bogus key belonging to Charlie instead of Alice's public key. 
  798.      All looks normal because this bogus key has Alice's user ID.  Now
  799.      Charlie can decipher the message intended for Alice because he has
  800.      the matching secret key.  He may even re-encrypt the deciphered
  801.      message with Alice's real public key and send it on to her so that no
  802.      one suspects any wrongdoing.  Furthermore, he can even make
  803.      apparently good signatures from Alice with this secret key because
  804.      everyone will use the bogus public key to check Alice's signatures.
  805.       
  806.      The only way to prevent this disaster is to prevent anyone from
  807.      tampering with public keys.  If you got Alice's public key directly
  808.      from Alice, this is no problem.  But that may be difficult if Alice
  809.      is a thousand miles away, or is currently unreachable.  
  810.       
  811.      Perhaps you could get Alice's public key from a mutual trusted friend
  812.      David who knows he has a good copy of Alice's public key.  David
  813.      could sign Alice's public key, vouching for the integrity of Alice's
  814.      public key.  David would create this signature with his own secret
  815.      key. 
  816.       
  817.      This would create a signed public key certificate, and would show
  818.      that Alice's key had not been tampered with.  This requires you have a
  819.      known good copy of David's public key to check his signature.  Perhaps
  820.      David could provide Alice with a signed copy of your public key also.
  821.      David is thus serving as an "introducer" between you and Alice.  
  822.       
  823.      This signed public key certificate for Alice could be uploaded by
  824.      David or Alice to the BBS, and you could download it later.  You
  825.      could then check the signature via David's public key and thus be
  826.      assured that this is really Alice's public key.  No impostor can fool
  827.      you into accepting his own bogus key as Alice's because no one else
  828.      can forge signatures made by David.
  829.       
  830.      A widely trusted person could even specialize in providing this
  831.  
  832.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 17
  833.  
  834.  
  835.      service of "introducing" users to each other by providing signatures
  836.      for their public key certificates.  This trusted person could be
  837.      regarded as a "key server", or as a "Certifying Authority".  Any
  838.      public key certificates bearing the key server's signature could be
  839.      trusted as truly belonging to whom they appear to belong to.  All
  840.      users who wanted to participate would need a known good copy of just
  841.      the key server's public key, so that the key server's signatures
  842.      could be verified.  
  843.       
  844.      A trusted centralized key server or Certifying Authority is
  845.      especially appropriate for large impersonal centrally-controlled
  846.      corporate or government institutions.  Some institutional
  847.      environments use hierarchies of Certifying Authorities.
  848.       
  849.      For more decentralized grassroots "guerrilla style" environments,
  850.      allowing all users to act as a trusted introducers for their friends
  851.      would probably work better than a centralized key server.  PGP tends
  852.      to emphasize this organic decentralized non-institutional approach. 
  853.      It better reflects the natural way humans interact on a personal
  854.      social level, and allows people to better choose who they can trust
  855.      for key management.
  856.       
  857.      This whole business of protecting public keys from tampering is the
  858.      single most difficult problem in practical public key applications. 
  859.      It is the "Achilles heel" of public key cryptography, and a lot of
  860.      software complexity is tied up in solving this one problem.  
  861.       
  862.      You should use a public key only after you are sure that it is a good
  863.      public key that has not been tampered with, and actually belongs to
  864.      the person it claims to.  You can be sure of this if you got this
  865.      public key certificate directly from its owner, or if it bears the
  866.      signature of someone else that you trust, from whom you already have
  867.      a good public key.  Also, the user ID should have the full name of
  868.      the key's owner, not just her first name.
  869.       
  870.      No matter how tempted you are-- and you will be tempted-- never,
  871.      NEVER give in to expediency and trust a public key you downloaded
  872.      from a bulletin board, unless it is signed by someone you trust. 
  873.      That uncertified public key could have been tampered with by anyone,
  874.      maybe even by the system administrator of the bulletin board.
  875.       
  876.      If you are asked to sign someone else's public key certificate, make
  877.      certain that it really belongs to that person named in the user ID of
  878.      that public key certificate.  This is because your signature on her
  879.      public key certificate is a promise by you that this public key
  880.      really belongs to her.  Other people who trust you will accept her
  881.      public key because it bears your signature.  It may be ill-advised to
  882.      rely on hearsay-- don't sign her public key unless you have
  883.      independent firsthand knowledge that it really belongs to her. 
  884.      Preferably, you should sign it only if you got it directly from her. 
  885.       
  886.      In order to sign a public key, you must be far more certain of that
  887.      key's ownership than if you merely want to use that key to encrypt a
  888.      message.  To be convinced of a key's validity enough to use it,
  889.      certifying signatures from trusted introducers should suffice.  But
  890.      to sign a key yourself, you should require your own independent
  891.  
  892.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 18
  893.  
  894.  
  895.      firsthand knowledge of who owns that key.  Perhaps you could call the
  896.      key's owner on the phone and read the key file to her to get her to
  897.      confirm that the key you have really is her key-- and make sure you
  898.      really are talking to the right person.  See the section called
  899.      "Verifying a Public Key Over the Phone" in the Special Topics volume
  900.      for further details.
  901.       
  902.      Bear in mind that your signature on a public key certificate does not
  903.      vouch for the integrity of that person, but only vouches for the
  904.      integrity (the ownership) of that person's public key.  You aren't
  905.      risking your credibility by signing the public key of a sociopath, if
  906.      you were completely confident that the key really belonged to him. 
  907.      Other people would accept that key as belonging to him because you
  908.      signed it (assuming they trust you), but they wouldn't trust that
  909.      key's owner.  Trusting a key is not the same as trusting the key's
  910.      owner.
  911.       
  912.      Trust is not necessarily transferable; I have a friend who I trust
  913.      not to lie.  He's a gullible person who trusts the President not to
  914.      lie.  That doesn't mean I trust the President not to lie.  This is
  915.      just common sense.  If I trust Alice's signature on a key, and Alice
  916.      trusts Charlie's signature on a key, that does not imply that I have
  917.      to trust Charlie's signature on a key.  
  918.       
  919.      It would be a good idea to keep your own public key on hand with a
  920.      collection of certifying signatures attached from a variety of
  921.      "introducers", in the hopes that most people will trust at least one
  922.      of the introducers who vouch for your own public key's validity. 
  923.      You could post your key with its attached collection of certifying
  924.      signatures on various electronic bulletin boards.  If you sign
  925.      someone else's public key, return it to them with your signature so
  926.      that they can add it to their own collection of credentials for their
  927.      own public key.
  928.       
  929.      PGP keeps track of which keys on your public key ring are properly
  930.      certified with signatures from introducers that you trust.  All you
  931.      have to do is tell PGP which people you trust as introducers, and
  932.      certify their keys yourself with your own ultimately trusted key.
  933.      PGP can take it from there, automatically validating any other keys
  934.      that have been signed by your designated introducers.  And of course
  935.      you may directly sign more keys yourself.  More on this later.
  936.       
  937.      Make sure no one else can tamper with your own public key ring.
  938.      Checking a new signed public key certificate must ultimately depend
  939.      on the integrity of the trusted public keys that are already on your
  940.      own public key ring.  Maintain physical control of your public key
  941.      ring, preferably on your own personal computer rather than on a
  942.      remote timesharing system, just as you would do for your secret key. 
  943.      This is to protect it from tampering, not from disclosure.  Keep a
  944.      trusted backup copy of your public key ring and your secret key ring
  945.      on write-protected media.
  946.       
  947.      Since your own trusted public key is used as a final authority to
  948.      directly or indirectly certify all the other keys on your key ring,
  949.      it is the most important key to protect from tampering.  To detect
  950.      any tampering of your own ultimately-trusted public key, PGP can be
  951.  
  952.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 19
  953.  
  954.  
  955.      set up to automatically compare your public key against a backup copy
  956.      on write-protected media.  For details, see the description of the
  957.      "-kc" key ring check command in the Special Topics volume.
  958.       
  959.      PGP generally assumes you will maintain physical security over your
  960.      system and your key rings, as well as your copy of PGP itself.  If an
  961.      intruder can tamper with your disk, then in theory he can tamper with
  962.      PGP itself, rendering moot the safeguards PGP may have to detect
  963.      tampering with keys.
  964.       
  965.      One somewhat complicated way to protect your own whole public key ring
  966.      from tampering is to sign the whole ring with your own secret key. 
  967.      You could do this by making a detached signature certificate of the
  968.      public key ring, by signing the ring with the "-sb" options (see the
  969.      section called "Separating Signatures from Messages" in the PGP
  970.      User's Guide, Special Topics volume).  Unfortunately, you would still
  971.      have to keep a separate trusted copy of your own public key around to
  972.      check the signature you made.  You couldn't rely on your own public
  973.      key stored on your public key ring to check the signature you made
  974.      for the whole ring, because that is part of what you're trying to
  975.      check.  
  976.       
  977.       
  978.       
  979.      How Does PGP Keep Track of Which Keys are Valid?
  980.      ------------------------------------------------
  981.       
  982.      Before you read this section, be sure to read the above section on 
  983.      "How to Protect Public Keys from Tampering".
  984.       
  985.      PGP keeps track of which keys on your public key ring are properly
  986.      certified with signatures from introducers that you trust.  All you
  987.      have to do is tell PGP which people you trust as introducers, and
  988.      certify their keys yourself with your own ultimately trusted key.
  989.      PGP can take it from there, automatically validating any other keys
  990.      that have been signed by your designated introducers.  And of course
  991.      you may directly sign more keys yourself.
  992.       
  993.      There are two entirely separate criteria PGP uses to judge a public
  994.      key's usefulness-- don't get them confused: 
  995.       
  996.        1)  Does the key actually belong to whom it appears to belong?  
  997.            In other words, has it been certified with a trusted signature?
  998.        2)  Does it belong to someone you can trust to certify other keys?
  999.       
  1000.      PGP can calculate the answer to the first question.  To answer the
  1001.      second question, PGP must be explicitly told by you, the user.  When
  1002.      you supply the answer to question 2, PGP can then calculate the
  1003.      answer to question 1 for other keys signed by the introducer you
  1004.      designated as trusted.
  1005.       
  1006.      Keys that have been certified by a trusted introducer are deemed
  1007.      valid by PGP.  The keys belonging to trusted introducers must
  1008.      themselves be certified either by you or by other trusted
  1009.      introducers.
  1010.       
  1011.  
  1012.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 20
  1013.  
  1014.  
  1015.      PGP also allows for the possibility of you having several shades of
  1016.      trust for people to act as introducers.  Your trust for a key's owner
  1017.      to act as an introducer does not just reflect your estimation of
  1018.      their personal integrity-- it should also reflect how competent you
  1019.      think they are at understanding key management and using good
  1020.      judgment in signing keys.  You can designate a person to PGP as
  1021.      unknown, untrusted, marginally trusted, or completely trusted to
  1022.      certify other public keys.  This trust information is stored on your
  1023.      key ring with their key, but when you tell PGP to copy a key off your
  1024.      key ring, PGP will not copy the trust information along with the key,
  1025.      because your private opinions on trust are regarded as confidential. 
  1026.       
  1027.      When PGP is calculating the validity of a public key, it examines the
  1028.      trust level of all the attached certifying signatures.  It computes a
  1029.      weighted score of validity-- two marginally trusted signatures are
  1030.      deemed as credible as one fully trusted signature.  PGP's skepticism
  1031.      is adjustable-- for example, you may tune PGP to require two fully
  1032.      trusted signatures or three marginally trusted signatures to judge a
  1033.      key as valid.
  1034.       
  1035.      Your own key is "axiomatically" valid to PGP, needing no introducer's
  1036.      signature to prove its validity.  PGP knows which public keys are
  1037.      yours, by looking for the corresponding secret keys on the secret
  1038.      key ring.  PGP also assumes you ultimately trust yourself to certify
  1039.      other keys.
  1040.       
  1041.      As time goes on, you will accumulate keys from other people that you
  1042.      may want to designate as trusted introducers.  Everyone else will
  1043.      each choose their own trusted introducers.  And everyone will
  1044.      gradually accumulate and distribute with their key a collection of
  1045.      certifying signatures from other people, with the expectation that
  1046.      anyone receiving it will trust at least one or two of the signatures. 
  1047.      This will cause the emergence of a decentralized fault-tolerant web
  1048.      of confidence for all public keys.
  1049.       
  1050.      This unique grass-roots approach contrasts sharply with Government
  1051.      standard public key management schemes, such as Internet Privacy
  1052.      Enhanced Mail (PEM), which are based on centralized control and
  1053.      mandatory centralized trust.  The standard schemes rely on a
  1054.      hierarchy of Certifying Authorities who dictate who you must trust. 
  1055.      PGP's decentralized probabilistic method for determining public key
  1056.      legitimacy is the centerpiece of its key management architecture. 
  1057.      PGP lets you alone choose who you trust, putting you at the top of
  1058.      your own private certification pyramid.  PGP is for people who prefer
  1059.      to pack their own parachutes.
  1060.       
  1061.       
  1062.       
  1063.      How to Protect Secret Keys from Disclosure
  1064.      ------------------------------------------
  1065.       
  1066.      Protect your own secret key and your pass phrase carefully.  Really,
  1067.      really carefully.  If your secret key is ever compromised, you'd
  1068.      better get the word out quickly to all interested parties (good luck)
  1069.      before someone else uses it to make signatures in your name.  For
  1070.      example, they could use it to sign bogus public key certificates,
  1071.  
  1072.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 21
  1073.  
  1074.  
  1075.      which could create problems for many people, especially if your
  1076.      signature is widely trusted.  And of course, a compromise of your own
  1077.      secret key could expose all messages sent to you.
  1078.       
  1079.      To protect your secret key, you can start by always keeping physical
  1080.      control of your secret key.  Keeping it on your personal computer at
  1081.      home is OK, or keep it in your notebook computer that you can carry
  1082.      with you.  If you must use an office computer that you don't always
  1083.      have physical control of, then keep your public and secret key rings
  1084.      on a write-protected removable floppy disk, and don't leave it behind
  1085.      when you leave the office.  It wouldn't be a good idea to allow your
  1086.      secret key to reside on a remote timesharing computer, such as a
  1087.      remote dial-in Unix system.  Someone could eavesdrop on your modem
  1088.      line and capture your pass phrase, and then obtain your actual secret
  1089.      key from the remote system.  You should only use your secret key on a
  1090.      machine that you have physical control over.  
  1091.       
  1092.      Don't store your pass phrase anywhere on the computer that has your
  1093.      secret key file.  Storing both the secret key and the pass phrase on
  1094.      the same computer is as dangerous as keeping your PIN in the same
  1095.      wallet as your Automatic Teller Machine bank card.  You don't want
  1096.      somebody to get their hands on your disk containing both the pass
  1097.      phrase and the secret key file.  It would be most secure if you just
  1098.      memorize your pass phrase and don't store it anywhere but your brain.  
  1099.      If you feel you must write down your pass phrase, keep it well
  1100.      protected, perhaps even more well protected than the secret key file.
  1101.       
  1102.      And keep backup copies of your secret key ring-- remember, you have
  1103.      the only copy of your secret key, and losing it will render useless
  1104.      all the copies of your public key that you have spread throughout the
  1105.      world.  
  1106.       
  1107.      The decentralized non-institutional approach PGP uses to manage
  1108.      public keys has its benefits, but unfortunately this also means we
  1109.      can't rely on a single centralized list of which keys have been
  1110.      compromised.  This makes it a bit harder to contain the damage of a
  1111.      secret key compromise.  You just have to spread the word and hope
  1112.      everyone hears about it.
  1113.       
  1114.      If the worst case happens-- your secret key and pass phrase are both
  1115.      compromised (hopefully you will find this out somehow)-- you will
  1116.      have to issue a "key compromise" certificate.  This kind of
  1117.      certificate is used to warn other people to stop using your public
  1118.      key.  You can use PGP to create such a certificate by using the "-kd"
  1119.      command.  Then you must somehow send this compromise certificate to
  1120.      everyone else on the planet, or at least to all your friends and
  1121.      their friends, et cetera.  Their own PGP software will install this
  1122.      key compromise certificate on their public key rings and will
  1123.      automatically prevent them from accidentally using your public key
  1124.      ever again.  You can then generate a new secret/public key pair and
  1125.      publish the new public key.  You could send out one package containing
  1126.      both your new public key and the key compromise certificate for your 
  1127.      old key.
  1128.       
  1129.       
  1130.       
  1131.  
  1132.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 22
  1133.  
  1134.  
  1135.      Revoking a Public Key
  1136.      ---------------------
  1137.       
  1138.      Suppose your secret key and your pass phrase are somehow both
  1139.      compromised.  You have to get the word out to the rest of the world,
  1140.      so that they will all stop using your public key.  To do this, you 
  1141.      will have to issue a "key compromise", or "key revocation" certificate
  1142.      to revoke your public key.
  1143.       
  1144.      To generate a certificate to revoke your own key, use the -kd
  1145.      command:
  1146.       
  1147.           pgp -kd your_userid
  1148.       
  1149.      This certificate bears your signature, made with the same key you are
  1150.      revoking.  You should widely disseminate this key revocation
  1151.      certificate as soon as possible.  Other people who receive it can add
  1152.      it to their public key rings, and their PGP software then
  1153.      automatically prevents them from accidentally using your old public
  1154.      key ever again.  You can then generate a new secret/public key pair
  1155.      and publish the new public key.
  1156.       
  1157.      You may choose to revoke your key for some other reason than the
  1158.      compromise of a secret key.  If so, you may still use the same
  1159.      mechanism to revoke it.
  1160.       
  1161.       
  1162.       
  1163.      What If You Lose Your Secret Key?
  1164.      ---------------------------------
  1165.       
  1166.      Normally, if you want to revoke your own secret key, you can use the
  1167.      "-kd" command to issue a revocation certificate, signed with your own
  1168.      secret key (see "Revoking a Public Key").  
  1169.       
  1170.      But what can you do if you lose your secret key, or if your secret
  1171.      key is destroyed?  You can't revoke it yourself, because you must use
  1172.      your own secret key to revoke it, and you don't have it anymore.  A
  1173.      future version of PGP will offer a more secure means of revoking keys
  1174.      in these circumstances, allowing trusted introducers to certify that
  1175.      a public key has been revoked.  But for now, you will have to get the
  1176.      word out through whatever informal means you can, asking users to
  1177.      "disable" your public key on their own individual public key rings.
  1178.       
  1179.      Other users may disable your public key on their own public key rings
  1180.      by using the "-kd" command.  If a user ID is specified that does not
  1181.      correspond to a secret key on the secret key ring, the -kd command
  1182.      will look for that user ID on the public key ring, and mark that
  1183.      public key as disabled.  A disabled key may not be used to encrypt
  1184.      any messages, and may not be extracted from the key ring with the -kx
  1185.      command.  It can still be used to check signatures, but a warning is
  1186.      displayed.  And if the user tries to add the same key again to his
  1187.      key ring, it will not work because the disabled key is already on the
  1188.      key ring.  These combined features will help curtail the further
  1189.      spread of a disabled key.
  1190.       
  1191.  
  1192.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 23
  1193.  
  1194.  
  1195.      If the specified public key is already disabled, the -kd command will
  1196.      ask if you want the key reenabled.
  1197.       
  1198.       
  1199.  
  1200.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 24
  1201.  
  1202.  
  1203.       
  1204.      Advanced Topics
  1205.      ===============
  1206.       
  1207.      Most of the "Advanced Topics" are covered in the "PGP User's Guide,
  1208.      Volume II:  Special Topics".  But here are a few topics that bear
  1209.      mentioning here.
  1210.       
  1211.       
  1212.      Sending Ciphertext Through E-mail Channels: Radix-64 Format
  1213.      -----------------------------------------------------------
  1214.       
  1215.      Many electronic mail systems only allow messages made of ASCII text,
  1216.      not the 8-bit raw binary data that ciphertext is made of.  To get
  1217.      around this problem, PGP supports ASCII radix-64 format for
  1218.      ciphertext messages, similar to the Internet Privacy-Enhanced Mail
  1219.      (PEM) format.  This special format represents binary data by using
  1220.      only printable ASCII characters, so it is useful for transmitting
  1221.      binary encrypted data through 7-bit channels or for sending binary
  1222.      encrypted data as normal E-mail text.  This format acts as a form of
  1223.      "transport armor", protecting it against corruption as it travels
  1224.      through intersystem gateways on Internet.  It also appends a CRC to 
  1225.      detect transmission errors.
  1226.       
  1227.      Radix-64 format converts the plaintext by expanding groups of 3
  1228.      binary 8-bit bytes into 4 printable ASCII characters, so the file
  1229.      grows by about 33%.  But this expansion isn't so bad when you
  1230.      consider that the file probably was compressed more than that by PGP
  1231.      before it was encrypted.
  1232.       
  1233.      To produce a ciphertext file in ASCII radix-64 format, just add the
  1234.      "a" option when encrypting or signing a message, like so:
  1235.       
  1236.          pgp -esa message.txt her_userid
  1237.       
  1238.      This example produces a ciphertext file called "message.asc" that
  1239.      contains data in a PEM-like ASCII radix-64 format.  This file can be
  1240.      easily uploaded into a text editor through 7-bit channels for
  1241.      transmission as normal E-mail on Internet or any other E-mail
  1242.      network.
  1243.       
  1244.      Decrypting the radix-64 transport-armored message is no different than
  1245.      a normal decrypt.  For example:
  1246.       
  1247.          pgp message
  1248.       
  1249.      PGP automatically looks for the ASCII file "message.asc" before it
  1250.      looks for the binary file "message.pgp".  It recognizes that the file
  1251.      is in radix-64 format and converts it back to binary before
  1252.      processing as it normally does, producing as a by-product a ".pgp"
  1253.      ciphertext file in binary form.  The final output file is in normal
  1254.      plaintext form, just as it was in the original file "message.txt".
  1255.       
  1256.      Most Internet E-mail facilities prohibit sending messages that are
  1257.      more than 50000 bytes long.  Longer messages must be broken into
  1258.      smaller chunks that can be mailed separately.  If your encrypted
  1259.  
  1260.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 25
  1261.  
  1262.  
  1263.      message is very large, and you requested radix-64 format, PGP 
  1264.      automatically breaks it up into chunks that are each small enough to
  1265.      send via E-mail.  The chunks are put into files named with extensions
  1266.      ".as1", ".as2", ".as3", etc.  The recipient must concatenate these
  1267.      separate files back together in their proper order into one big file
  1268.      before decrypting it.  While decrypting, PGP ignores any extraneous
  1269.      text in mail headers that are not enclosed in the radix-64 message
  1270.      blocks.
  1271.       
  1272.      If you want to send a public key to someone else in radix-64 format,
  1273.      just add the -a option while extracting the key from your keyring.
  1274.       
  1275.      If you forgot to use the -a option when you made a ciphertext file or
  1276.      extracted a key, you may still directly convert the binary file into
  1277.      radix-64 format by simply using the -a option alone, without any
  1278.      encryption specified.  PGP converts it to a ".asc" file.
  1279.       
  1280.      If you want to send through an E-mail channel a plaintext file that
  1281.      is signed but not encrypted, PGP will normally convert it all into
  1282.      radix-64 armor, rendering it unreadable to the casual human observer. 
  1283.      If the original plaintext message is in text (not binary) form, there
  1284.      is a way to send it through an E-mail channel in such a way that the
  1285.      ASCII armor is applied only to the binary signature certificate, but
  1286.      not to the plaintext message.  This makes it possible for the
  1287.      recipient to read the signed message with human eyes, without the aid
  1288.      of PGP.  Of course, PGP is still needed to actually check the
  1289.      signature.  For further information on this feature, see the
  1290.      explanation of the CLEARSIG parameter in the section "Setting
  1291.      Configuration Parameters: CONFIG.TXT" in the Special Topics volume.
  1292.       
  1293.       
  1294.      Environmental Variable for Path Name
  1295.      ------------------------------------
  1296.       
  1297.      PGP uses several special files for its purposes, such as your
  1298.      standard key ring files "pubring.pgp" and "secring.pgp", the random
  1299.      number seed file "randseed.bin", the PGP configuration file
  1300.      "config.txt", and the foreign language string translation file
  1301.      "language.txt".  These special files can be kept in any directory, by
  1302.      setting the environmental variable "PGPPATH" to the desired pathname. 
  1303.      For example, on MSDOS, the shell command:
  1304.       
  1305.          SET PGPPATH=C:\PGP
  1306.       
  1307.      makes PGP assume that your public key ring filename is 
  1308.      "C:\PGP\pubring.pgp".  Assuming, of course, that this directory
  1309.      exists.  Use your favorite text editor to modify your MSDOS
  1310.      AUTOEXEC.BAT file to automatically set up this variable whenever you
  1311.      start up your system.  If PGPPATH remains undefined, these special
  1312.      files are assumed to be in the current directory.
  1313.       
  1314.       
  1315.       
  1316.      Setting Configuration Parameters: CONFIG.TXT
  1317.      --------------------------------------------
  1318.       
  1319.  
  1320.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 26
  1321.  
  1322.  
  1323.      PGP has a number of user-settable parameters that can be defined in a
  1324.      special configuration text file called "config.txt", in the directory
  1325.      pointed to by the shell environmental variable PGPPATH.  Having a
  1326.      configuration file enables the user to define various flags and
  1327.      parameters for PGP without the burden of having to always define
  1328.      these parameters in the PGP command line.  
  1329.       
  1330.      With these configuration parameters, for example, you can control
  1331.      where PGP stores its temporary scratch files, or you can select what
  1332.      foreign language PGP will use to display its diagnostics messages and
  1333.      user prompts, or you can adjust PGP's level of skepticism in
  1334.      determining a key's validity based on the number of certifying
  1335.      signatures it has.
  1336.       
  1337.      For more details on setting these configuration parameters, see the
  1338.      appropriate section of the PGP User's Guide, Special Topics volume.
  1339.       
  1340.       
  1341.       
  1342.      Vulnerabilities
  1343.      ---------------
  1344.       
  1345.      No data security system is impenetrable.  PGP can be circumvented in
  1346.      a variety of ways.  Potential vulnerabilities you should be aware of
  1347.      include compromising your pass phrase or secret key, public key
  1348.      tampering, files that you deleted but are still somewhere on the
  1349.      disk, viruses and Trojan horses, breaches in your physical security,
  1350.      electromagnetic emissions, exposure on multi-user systems, traffic
  1351.      analysis, and perhaps even direct cryptanalysis.
  1352.       
  1353.      For a detailed discussion of these issues, see the "Vulnerabilities"
  1354.      section in the PGP User's Guide, Special Topics volume.
  1355.       
  1356.       
  1357.  
  1358.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 27
  1359.  
  1360.  
  1361.       
  1362.      Beware of Snake Oil
  1363.      ===================
  1364.       
  1365.      When examining a cryptographic software package, the question always
  1366.      remains, why should you trust this product?  Even if you examined the
  1367.      source code yourself, not everyone has the cryptographic experience
  1368.      to judge the security.  Even if you are an experienced cryptographer,
  1369.      subtle weaknesses in the algorithms could still elude you. 
  1370.       
  1371.      When I was in college in the early seventies, I devised what I
  1372.      believed was a brilliant encryption scheme.  A simple pseudorandom
  1373.      number stream was added to the plaintext stream to create
  1374.      ciphertext.  This would seemingly thwart any frequency analysis of
  1375.      the ciphertext, and would be uncrackable even to the most resourceful
  1376.      Government intelligence agencies.  I felt so smug about my
  1377.      achievement.  So cock-sure.  
  1378.       
  1379.      Years later, I discovered this same scheme in several introductory
  1380.      cryptography texts and tutorial papers.  How nice.  Other
  1381.      cryptographers had thought of the same scheme.  Unfortunately, the
  1382.      scheme was presented as a simple homework assignment on how to use
  1383.      elementary cryptanalytic techniques to trivially crack it.  So much
  1384.      for my brilliant scheme.
  1385.       
  1386.      From this humbling experience I learned how easy it is to fall into a
  1387.      false sense of security when devising an encryption algorithm.  Most
  1388.      people don't realize how fiendishly difficult it is to devise an
  1389.      encryption algorithm that can withstand a prolonged and determined
  1390.      attack by a resourceful opponent.  Many mainstream software engineers
  1391.      have developed equally naive encryption schemes (often even the very
  1392.      same encryption scheme), and some of them have been incorporated into
  1393.      commercial encryption software packages and sold for good money to
  1394.      thousands of unsuspecting users. 
  1395.       
  1396.      This is like selling automotive seat belts that look good and feel
  1397.      good, but snap open in even the slowest crash test.  Depending on
  1398.      them may be worse than not wearing seat belts at all.  No one
  1399.      suspects they are bad until a real crash.  Depending on weak
  1400.      cryptographic software may cause you to unknowingly place sensitive
  1401.      information at risk.  You might not otherwise have done so if you had
  1402.      no cryptographic software at all.  Perhaps you may never even
  1403.      discover your data has been compromised.
  1404.       
  1405.      Sometimes commercial packages use the Federal Data Encryption
  1406.      Standard (DES), a good conventional algorithm recommended by the
  1407.      Government for commercial use (but not for classified information,
  1408.      oddly enough-- hmmm).  There are several "modes of operation" the 
  1409.      DES can use, some of them better than others.  The Government
  1410.      specifically recommends not using the weakest simplest mode for
  1411.      messages, the Electronic Codebook (ECB) mode.  But they do recommend
  1412.      the stronger and more complex Cipher Feedback (CFB) or Cipher Block
  1413.      Chaining (CBC) modes.  
  1414.       
  1415.      Unfortunately, most of the commercial encryption packages I've looked
  1416.      at use ECB mode.  When I've talked to the authors of a number of
  1417.  
  1418.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 28
  1419.  
  1420.  
  1421.      these implementations, they say they've never heard of CBC or CFB
  1422.      modes, and didn't know anything about the weaknesses of ECB mode. 
  1423.      The very fact that they haven't even learned enough cryptography to
  1424.      know these elementary concepts is not reassuring.  These same
  1425.      software packages often include a second faster encryption algorithm
  1426.      that can be used instead of the slower DES.  The author of the
  1427.      package often thinks his proprietary faster algorithm is as secure as
  1428.      the DES, but after questioning him I usually discover that it's just
  1429.      a variation of my own brilliant scheme from college days.  Or maybe
  1430.      he won't even reveal how his proprietary encryption scheme works, but
  1431.      assures me it's a brilliant scheme and I should trust it.  I'm sure
  1432.      he believes that his algorithm is brilliant, but how can I know that
  1433.      without seeing it?  
  1434.       
  1435.      In all fairness I must point out that in most cases these products do
  1436.      not come from companies that specialize in cryptographic technology.
  1437.       
  1438.      There is a company called AccessData (87 East 600 South, Orem, Utah
  1439.      84058, phone 1-800-658-5199) that sells a package for $185 that
  1440.      cracks the built-in encryption schemes used by WordPerfect, Lotus
  1441.      1-2-3, MS Excel, Symphony, Quattro Pro, Paradox, and MS Word 2.0.  It
  1442.      doesn't simply guess passwords-- it does real cryptanalysis.  Some
  1443.      people buy it when they forget their password for their own files. 
  1444.      Law enforcement agencies buy it too, so they can read files they
  1445.      seize.  I talked to Eric Thompson, the author, and he said his
  1446.      program only takes a split second to crack them, but he put in some
  1447.      delay loops to slow it down so it doesn't look so easy to the
  1448.      customer.  He also told me that the password encryption feature of
  1449.      PKZIP files can often be easily broken, and that his law enforcement
  1450.      customers already have that service regularly provided to them from
  1451.      another vendor. 
  1452.       
  1453.      In some ways, cryptography is like pharmaceuticals.  Its integrity
  1454.      may be absolutely crucial.  Bad penicillin looks the same as good
  1455.      penicillin.  You can tell if your spreadsheet software is wrong, but
  1456.      how do you tell if your cryptography package is weak?  The ciphertext
  1457.      produced by a weak encryption algorithm looks as good as ciphertext
  1458.      produced by a strong encryption algorithm.  There's a lot of snake
  1459.      oil out there.  A lot of quack cures.  Unlike the patent medicine
  1460.      hucksters of old, these software implementors usually don't even know
  1461.      their stuff is snake oil.  They may be good software engineers, but 
  1462.      they usually haven't even read any of the academic literature in
  1463.      cryptography.  But they think they can write good cryptographic
  1464.      software.  And why not?  After all, it seems intuitively easy to do
  1465.      so.  And their software seems to work okay.    
  1466.       
  1467.      Anyone who thinks they have devised an unbreakable encryption scheme
  1468.      either is an incredibly rare genius or is naive and inexperienced.
  1469.       
  1470.      I remember a conversation with Brian Snow, a highly placed senior
  1471.      cryptographer with the NSA.  He said he would never trust an
  1472.      encryption algorithm designed by someone who had not "earned their
  1473.      bones" by first spending a lot of time cracking codes.  That did make
  1474.      a lot of sense.  I observed that practically no one in the commercial
  1475.      world of cryptography qualified under this criterion.  "Yes", he said
  1476.      with a self assured smile, "And that makes our job at NSA so much
  1477.  
  1478.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 29
  1479.  
  1480.  
  1481.      easier."  A chilling thought.  I didn't qualify either.
  1482.       
  1483.      The Government has peddled snake oil too.  After World War II, the US
  1484.      sold German Enigma ciphering machines to third world governments.
  1485.      But they didn't tell them that the Allies cracked the Enigma code
  1486.      during the war, a fact that remained classified for many years.  Even
  1487.      today many Unix systems worldwide use the Enigma cipher for file
  1488.      encryption, in part because the Government has created legal
  1489.      obstacles against using better algorithms.  They even tried to
  1490.      prevent the initial publication of the RSA algorithm in 1977.  And
  1491.      they have squashed essentially all commercial efforts to develop
  1492.      effective secure telephones for the general public. 
  1493.       
  1494.      The principle job of the US Government's National Security Agency is
  1495.      to gather intelligence, principally by covertly tapping into people's
  1496.      private communications (see James Bamford's book, "The Puzzle
  1497.      Palace").  The NSA has amassed considerable skill and resources for
  1498.      cracking codes.  When people can't get good cryptography to protect
  1499.      themselves, it makes NSA's job much easier.  NSA also has the
  1500.      responsibility of approving and recommending encryption algorithms. 
  1501.      Some critics charge that this is a conflict of interest, like putting
  1502.      the fox in charge of guarding the hen house.  NSA has been pushing a
  1503.      conventional encryption algorithm that they designed, and they won't
  1504.      tell anybody how it works because that's classified.  They want
  1505.      others to trust it and use it.  But any cryptographer can tell you
  1506.      that a well-designed encryption algorithm does not have to be
  1507.      classified to remain secure.  Only the keys should need protection. 
  1508.      How does anyone else really know if NSA's classified algorithm is
  1509.      secure?  It's not that hard for NSA to design an encryption algorithm
  1510.      that only they can crack, if no one else can review the algorithm. 
  1511.      Are they deliberately selling snake oil? 
  1512.       
  1513.      I'm not as certain about the security of PGP as I once was about my
  1514.      brilliant encryption software from college.  If I were, that would be
  1515.      a bad sign.  But I'm pretty sure that PGP does not contain any
  1516.      glaring weaknesses.  The crypto algorithms were developed by people
  1517.      at high levels of civilian cryptographic academia, and have been
  1518.      individually subject to extensive peer review.  Source code is
  1519.      available to facilitate peer review of PGP and to help dispel the
  1520.      fears of some users.  It's reasonably well researched, and has been
  1521.      years in the making.  And I don't work for the NSA.  I hope it
  1522.      doesn't require too large a "leap of faith" to trust the security of
  1523.      PGP.
  1524.       
  1525.       
  1526.  
  1527.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 30
  1528.  
  1529.  
  1530.       
  1531.      PGP Quick Reference
  1532.      ===================
  1533.       
  1534.      Here's a quick summary of PGP commands.
  1535.       
  1536.       
  1537.      To encrypt a plaintext file with the recipient's public key:
  1538.           pgp -e textfile her_userid
  1539.       
  1540.      To sign a plaintext file with your secret key:
  1541.           pgp -s textfile [-u your_userid]
  1542.       
  1543.      To sign a plaintext file with your secret key, and then encrypt it 
  1544.      with the recipient's public key:
  1545.           pgp -es textfile her_userid [-u your_userid]
  1546.       
  1547.      To encrypt a plaintext file with just conventional cryptography, type:
  1548.           pgp -c textfile
  1549.       
  1550.      To decrypt an encrypted file, or to check the signature integrity of a
  1551.      signed file:
  1552.           pgp ciphertextfile [-o plaintextfile]
  1553.       
  1554.      To encrypt a message for any number of multiple recipients:
  1555.           pgp -e textfile userid1 userid2 userid3
  1556.       
  1557.      --- Key management commands:
  1558.       
  1559.      To generate your own unique public/secret key pair:
  1560.           pgp -kg
  1561.       
  1562.      To add a public or secret key file's contents to your public or
  1563.      secret key ring:
  1564.           pgp -ka keyfile [keyring]
  1565.       
  1566.      To extract (copy) a key from your public or secret key ring:
  1567.           pgp -kx userid keyfile [keyring]
  1568.      or:  pgp -kxa userid keyfile [keyring]
  1569.       
  1570.      To view the contents of your public key ring:
  1571.           pgp -kv[v] [userid] [keyring] 
  1572.       
  1573.      To view the "fingerprint" of a public key, to help verify it over 
  1574.      the telephone with its owner:
  1575.           pgp -kvc [userid] [keyring]
  1576.       
  1577.      To view the contents and check the certifying signatures of your 
  1578.      public key ring:
  1579.           pgp -kc [userid] [keyring] 
  1580.       
  1581.      To edit the userid or pass phrase for your secret key:
  1582.           pgp -ke userid [keyring]
  1583.       
  1584.      To edit the trust parameters for a public key:
  1585.           pgp -ke userid [keyring]
  1586.  
  1587.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 31
  1588.  
  1589.  
  1590.       
  1591.      To remove a key or just a userid from your public key ring:
  1592.           pgp -kr userid [keyring]
  1593.       
  1594.      To sign and certify someone else's public key on your public key ring:
  1595.           pgp -ks her_userid [-u your_userid] [keyring]
  1596.       
  1597.      To remove selected signatures from a userid on a keyring:
  1598.           pgp -krs userid [keyring]
  1599.       
  1600.      To permanently revoke your own key, issuing a key compromise 
  1601.      certificate:
  1602.           pgp -kd your_userid
  1603.       
  1604.      To disable or reenable a public key on your own public key ring:
  1605.           pgp -kd userid
  1606.       
  1607.      --- Esoteric commands:
  1608.       
  1609.      To decrypt a message and leave the signature on it intact:
  1610.           pgp -d ciphertextfile
  1611.       
  1612.      To create a signature certificate that is detached from the document:
  1613.           pgp -sb textfile [-u your_userid]
  1614.       
  1615.      To detach a signature certificate from a signed message:
  1616.           pgp -b ciphertextfile
  1617.       
  1618.      --- Command options that can be used in combination with other 
  1619.      command options (sometimes even spelling interesting words!):
  1620.       
  1621.      To produce a ciphertext file in ASCII radix-64 format, just add the
  1622.      -a option when encrypting or signing a message or extracting a key:
  1623.           pgp -sea textfile her_userid
  1624.      or:  pgp -kxa userid keyfile [keyring]
  1625.       
  1626.      To wipe out the plaintext file after producing the ciphertext file,
  1627.      just add the -w (wipe) option when encrypting or signing a message:
  1628.           pgp -sew message.txt her_userid
  1629.       
  1630.      To specify that a plaintext file contains ASCII text, not binary, and
  1631.      should be converted to recipient's local text line conventions, add
  1632.      the -t (text) option to other options:
  1633.           pgp -seat message.txt her_userid
  1634.       
  1635.      To view the decrypted plaintext output on your screen (like the
  1636.      Unix-style "more" command), without writing it to a file, use 
  1637.      the -m (more) option while decrypting:
  1638.           pgp -m ciphertextfile
  1639.       
  1640.      To specify that the recipient's decrypted plaintext will be shown
  1641.      ONLY on her screen and cannot be saved to disk, add the -m option:
  1642.           pgp -steam message.txt her_userid
  1643.       
  1644.      To recover the original plaintext filename while decrypting, add 
  1645.      the -p option:
  1646.  
  1647.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 32
  1648.  
  1649.  
  1650.           pgp -p ciphertextfile
  1651.       
  1652.      To use a Unix-style filter mode, reading from standard input and
  1653.      writing to standard output, add the -f option:
  1654.           pgp -feast her_userid <inputfile >outputfile
  1655.       
  1656.       
  1657.       
  1658.  
  1659.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 33
  1660.  
  1661.  
  1662.       
  1663.      Legal Issues
  1664.      ============
  1665.       
  1666.      For detailed information on PGP licensing, distribution, copyrights,
  1667.      patents, trademarks, liability limitations, and export controls, see
  1668.      the "Legal Issues" section in the "PGP User's Guide, Volume II: 
  1669.      Special Topics".
  1670.       
  1671.      PGP uses a public key algorithm claimed by U.S. patent #4,405,829. 
  1672.      The exclusive rights to this patent are held by a California company
  1673.      called Public Key Partners, and you may be infringing this patent if
  1674.      you use PGP in the USA.  This is explained in the Volume II manual.
  1675.       
  1676.      PGP is "guerrilla" freeware, and I don't mind if you distribute it
  1677.      widely.  Just don't ask me to send you a copy.  Instead, you can get
  1678.      it yourself from many BBS systems and a number of Internet FTP sites.  
  1679.       
  1680.       
  1681.       
  1682.      Acknowledgments
  1683.      ================
  1684.       
  1685.      I'd like to thank the following people for their contributions to the
  1686.      creation of Pretty Good Privacy.  Although I was the author of PGP
  1687.      version 1.0, major parts of later versions of PGP were implemented by
  1688.      an international collaborative effort involving a large number of
  1689.      contributors, under my design guidance.  
  1690.       
  1691.      Branko Lankester, Hal Finney and Peter Gutmann all contributed a huge
  1692.      amount of time in adding features for PGP 2.0, and ported it to Unix
  1693.      variants.  Hal and Branko made Herculean efforts in implementing my
  1694.      new key management protocols.  Branko has spent more time on it than
  1695.      any other contributor to PGP.
  1696.       
  1697.      Hugh Kennedy ported it to VAX/VMS, Lutz Frank ported it to the Atari
  1698.      ST, and Cor Bosman and Colin Plumb ported it to the Commodore Amiga.
  1699.       
  1700.      Translation of PGP into foreign languages was done by Jean-loup
  1701.      Gailly in France, Armando Ramos in Spain, Felipe Rodriquez Svensson
  1702.      and Branko Lankester in The Netherlands, Miguel Angel Gallardo in
  1703.      Spain, Hugh Kennedy and Lutz Frank in Germany, David Vincenzetti in
  1704.      Italy, Harry Bush and Maris Gabalins in Latvia, Zygimantas Cepaitis
  1705.      in Lithuania, Peter Suchkow and Andrew Chernov in Russia, and
  1706.      Alexander Smishlajev in Esperantujo.  Peter Gutmann offered to
  1707.      translate it into New Zealand English, but we finally decided PGP
  1708.      could get by with US English.
  1709.       
  1710.      Jean-loup Gailly, Mark Adler, and Richard B. Wales published the ZIP
  1711.      compression code, and granted permission for inclusion into PGP.  The
  1712.      MD5 routines were developed and placed in the public domain by Ron
  1713.      Rivest.  The IDEA(tm) cipher was developed by Xuejia Lai and James L.
  1714.      Massey at ETH in Zurich, and is used in PGP with permission from
  1715.      Ascom-Tech AG. 
  1716.       
  1717.      Charlie Merritt originally taught me how to do decent multiprecision 
  1718.  
  1719.      PGPDOC1.TXT            Saturday, March  6, 1993 11:38 am            Page 34
  1720.  
  1721.  
  1722.      arithmetic for public key cryptography, and Jimmy Upton contributed a
  1723.      faster multiply/modulo algorithm.  Thad Smith implemented an even
  1724.      faster modmult algorithm.  Zhahai Stewart contributed a lot of useful
  1725.      ideas on PGP file formats and other stuff, including having more than
  1726.      one user ID for a key.  I heard the idea of introducers from Whit
  1727.      Diffie.  Kelly Goen did most of the work for the initial electronic
  1728.      publication of PGP 1.0.
  1729.       
  1730.      Various contributions of coding effort also came from Colin Plumb,
  1731.      Derek Atkins, and Castor Fu.  Other contributions of effort, coding
  1732.      or otherwise, have come from Hugh Miller, Eric Hughes, Tim May,
  1733.      Stephan Neuhaus, and too many others for me to remember right now. 
  1734.      Two Macintosh porting projects have been underway, headed by Zbigniew
  1735.      Fiedorwicz and Blair Weiss.
  1736.       
  1737.      Since the release of PGP 2.0, many other programmers have sent in
  1738.      patches and bug fixes and porting adjustments for other computers.
  1739.      There are too many to individually thank here.
  1740.       
  1741.      The development of PGP has turned into a remarkable social
  1742.      phenomenon, whose unique political appeal has inspired the collective
  1743.      efforts of an ever-growing number of volunteer programmers.  Remember
  1744.      that children's story called "Stone Soup"?  It is getting harder to
  1745.      peer through the thick soup to see the stone at the bottom of the pot
  1746.      that I dropped in to start it all off.
  1747.       
  1748.       
  1749.       
  1750.      About the Author
  1751.      ================
  1752.       
  1753.      Philip Zimmermann is a software engineer consultant with 18 years
  1754.      experience, specializing in embedded real-time systems, cryptography,
  1755.      authentication, and data communications.  Experience includes design
  1756.      and implementation of authentication systems for financial
  1757.      information networks, network data security, key management
  1758.      protocols, embedded real-time multitasking executives, operating
  1759.      systems, and local area networks.  
  1760.       
  1761.      Custom versions of cryptography and authentication products and 
  1762.      public key implementations such as the NIST DSS are available from
  1763.      Zimmermann, as well as custom product development services.  His
  1764.      consulting firm's address is: 
  1765.       
  1766.      Boulder Software Engineering
  1767.      3021 Eleventh Street
  1768.      Boulder, Colorado 80304  USA
  1769.      Phone 303-541-0140 (voice or FAX)  (10:00am - 7:00pm Mountain Time)
  1770.      Internet:  prz@sage.cgd.ucar.edu
  1771.       
  1772.       
  1773.       
  1774.  
  1775.