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 / PGPDOC2.DOC < prev    next >
Text File  |  1993-03-07  |  120KB  |  2,428 lines

  1.  
  2.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 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 II: Special 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-1993 Philip Zimmermann. 
  41.      For information on PGP licensing, distribution, copyrights, patents,
  42.      trademarks, liability limitations, and export controls, see the
  43.      "Legal Issues" section.
  44.       
  45.       
  46.  
  47.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am             Page 2
  48.  
  49.  
  50.       
  51.      Contents
  52.      ========
  53.       
  54.      Quick Overview
  55.      Special Topics
  56.        Selecting Keys via Key ID
  57.        Separating Signatures from Messages
  58.        Decrypting the Message and Leaving the Signature on it
  59.        Sending ASCII Text Files Across Different Machine Environments
  60.        Leaving No Traces of Plaintext on the Disk
  61.        Displaying Decrypted Plaintext on Your Screen
  62.        Making a Message For Her Eyes Only
  63.        Preserving the Original Plaintext Filename
  64.        Editing Your User ID or Pass Phrase
  65.        Editing the Trust Parameters for a Public Key
  66.        Checking If Everything is OK on Your Public Key Ring
  67.        Verifying a Public Key Over the Phone
  68.        Using PGP as a Unix-style Filter
  69.        Suppressing Unneccessary Questions:  BATCHMODE
  70.        Force "Yes" Answer to Confirmation Questions:  FORCE
  71.        PGP Returns Exit Status to the Shell
  72.        Environmental Variable for Pass Phrase
  73.        Setting Configuration Parameters: CONFIG.TXT
  74.          TMP - Directory Pathname for Temporary Files
  75.          LANGUAGE - Foreign Language Selector
  76.          MYNAME - Default User ID for Making Signatures
  77.          TEXTMODE - Assuming Plaintext is a Text File
  78.          CHARSET - Specifies Local Character Set for Text Files
  79.          ARMOR - Enable ASCII Armor Output
  80.          ARMORLINES - Size of ASCII Armor Multipart Files
  81.          KEEPBINARY - Keep Binary Ciphertext Files After Decrypting
  82.          COMPRESS - Enable Compression
  83.          COMPLETES_NEEDED - Number of Completely Trusted Introducers Needed
  84.          MARGINALS_NEEDED - Number of Marginally Trusted Introducers Needed
  85.          CERT_DEPTH - How Deep May Introducers Be Nested
  86.          BAKRING - Filename for Backup Secret Keyring
  87.          PAGER - Selects Shell Command to Display Plaintext Output
  88.          SHOWPASS - Echo Pass Phrase to User
  89.          TZFIX - Timezone Adjustment
  90.          CLEARSIG - Enable Signed Messages to be Encapsulated as Clear Text
  91.          VERBOSE - Quiet, Normal, or Verbose Messages
  92.          INTERACTIVE - Ask for Confirmation for Key Adds
  93.        Protecting Against Bogus Timestamps
  94.        A Peek Under the Hood
  95.          Random Numbers
  96.          PGP's Conventional Encryption Algorithm
  97.          Data Compression
  98.          Message Digests and Digital Signatures
  99.        Compatibility with Previous Versions of PGP
  100.      Vulnerabilities
  101.        Compromised Pass Phrase and Secret Key
  102.        Public Key Tampering
  103.        "Not Quite Deleted" Files
  104.        Viruses and Trojan Horses
  105.        Physical Security Breach
  106.  
  107.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am             Page 3
  108.  
  109.  
  110.        Tempest Attacks
  111.        Exposure on Multi-user Systems
  112.        Traffic Analysis
  113.        Cryptanalysis
  114.      Legal Issues
  115.        Trademarks, Copyrights, and Warranties
  116.        Patent Rights on the Algorithms
  117.        Licensing and Distribution
  118.        Export Controls
  119.      Computer-Related Political Groups
  120.      Recommended Readings
  121.      To Contact the Author
  122.      Appendix A:  Where to Get PGP
  123.       
  124.       
  125.  
  126.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am             Page 4
  127.  
  128.  
  129.       
  130.      Quick Overview
  131.      =============
  132.       
  133.      Pretty Good(tm) Privacy (PGP), from Phil's Pretty Good Software, is a
  134.      high security cryptographic software application for MSDOS, Unix,
  135.      VAX/VMS, and other computers.  PGP combines the convenience of the
  136.      Rivest-Shamir-Adleman (RSA) public key cryptosystem with the speed of
  137.      conventional cryptography, message digests for digital signatures,
  138.      data compression before encryption, good ergonomic design, and
  139.      sophisticated key management. 
  140.       
  141.      This volume II of the PGP User's Guide covers advanced topics about
  142.      PGP that were not covered in the "PGP User's Guide, Volume I:
  143.      Essential Topics".  You should first read the Essential Topics
  144.      volume, or this manual won't make much sense to you.  Reading this
  145.      Special Topics volume is optional.
  146.       
  147.       
  148.       
  149.      Special Topics
  150.      ===============
  151.       
  152.       
  153.      Selecting Keys via Key ID
  154.      -------------------------
  155.       
  156.      In all commands that let the user type a user ID or fragment of a
  157.      user ID to select a key, the hexadecimal key ID may be used instead. 
  158.      Just use the key ID, with a prefix of "0x", in place of the user ID. 
  159.      For example:
  160.       
  161.          pgp -kv 0x67F7
  162.       
  163.      This would display all keys that had 67F7 as part of their key IDs.
  164.       
  165.      This feature is particularly useful if you have two different keys
  166.      from the same person, with the same user ID.  You can unambiguously
  167.      pick which key you want by specifying the key ID.
  168.       
  169.       
  170.      Separating Signatures from Messages
  171.      -----------------------------------
  172.       
  173.      Normally, signature certificates are physically attached to the text
  174.      they sign.  This makes it convenient in simple cases to check
  175.      signatures.  It is desirable in some circumstances to have signature
  176.      certificates stored separately from the messages they sign.  It is
  177.      possible to generate signature certificates that are detached from
  178.      the text they sign.  To do this, combine the 'b' (break) option with
  179.      the 's' (sign) option.  For example:
  180.       
  181.          pgp -sb letter.txt
  182.       
  183.      This example produces an isolated signature certificate in a file
  184.      called "letter.sig".  The contents of letter.txt are not appended to
  185.  
  186.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am             Page 5
  187.  
  188.  
  189.      the signature certificate.
  190.       
  191.      After creating the signature certificate file (letter.sig in the
  192.      above example), send it along with the original text file to the
  193.      recipient.  The recipient must have both files to check the signature
  194.      integrity.  When the recipient attempts to process the signature
  195.      file, PGP notices that there is no text in the same file with the
  196.      signature and prompts the user for the filename of the text. Only
  197.      then can PGP properly check the signature integrity.  If the
  198.      recipient knows in advance that the signature is detached from the
  199.      text file, she can specify both filenames on the command line:
  200.       
  201.          pgp letter.sig letter.txt
  202.      or: pgp letter letter.txt
  203.       
  204.      PGP will not have to prompt for the text file name in this case.
  205.       
  206.      A detached signature certificate is useful if you want to keep the
  207.      signature certificate in a separate certificate log.  A detached
  208.      signature of an executable program is also useful for detecting a
  209.      subsequent virus infection.  It is also useful if more than one party
  210.      must sign a document such as a legal contract, without nesting
  211.      signatures.  Each person's signature is independent.
  212.       
  213.      If you receive a ciphertext file that has the signature certificate
  214.      glued to the message, you can still pry the signature certificate
  215.      away from the message during the decryption.  You can do this with
  216.      the -b option during decrypt, like so:
  217.       
  218.          pgp -b letter
  219.       
  220.      This decrypts the letter.pgp file and if there is a signature in it,
  221.      PGP checks the signature and detaches it from the rest of the
  222.      message, storing it in the file letter.sig.
  223.       
  224.       
  225.      Decrypting the Message and Leaving the Signature on it
  226.      ------------------------------------------------------
  227.       
  228.      Usually, you want PGP to completely unravel a ciphertext file,
  229.      decrypting it and checking the nested signature if there is one,
  230.      peeling away the layers until you are left with only the original
  231.      plaintext file.
  232.       
  233.      But sometimes you want to decrypt an encrypted file, and leave the
  234.      inner signature still attached, so that you are left with a decrypted
  235.      signed message.  This may be useful if you want to send a copy of a
  236.      signed document to a third party, perhaps re-enciphering it.  For
  237.      example, suppose you get a message signed by Charlie, encrypted to
  238.      you.  You want to decrypt it, and, leaving Charlie's signature on it,
  239.      you want to send it to Alice, perhaps re-enciphering it with Alice's
  240.      public key.  No problem.  PGP can handle that.
  241.       
  242.      To simply decrypt a message and leave the signature on it intact,
  243.      type:
  244.       
  245.  
  246.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am             Page 6
  247.  
  248.  
  249.          pgp -d letter
  250.       
  251.      This decrypts letter.pgp, and if there is an inner signature, it is
  252.      left intact with the decrypted plaintext in the output file.
  253.       
  254.      Now you can archive it, or maybe re-encrypt it and send it to someone
  255.      else.
  256.       
  257.       
  258.       
  259.      Sending ASCII Text Files Across Different Machine Environments
  260.      --------------------------------------------------------------
  261.       
  262.      You may use PGP to encrypt any kind of plaintext file, binary 8-bit
  263.      data or ASCII text.  Probably the most common usage of PGP will be for
  264.      E-mail, when the plaintext is ASCII text.  
  265.       
  266.      ASCII text is sometimes represented differently on different
  267.      machines.  For example, on an MSDOS system, all lines of ASCII text
  268.      are terminated with a carriage return followed by a linefeed.  On a
  269.      Unix system, all lines end with just a linefeed.  On a Macintosh, all
  270.      lines end with just a carriage return.  This is a sad fact of life.
  271.       
  272.      Normal unencrypted ASCII text messages are often automatically
  273.      translated to some common "canonical" form when they are transmitted
  274.      from one machine to another.  Canonical text has a carriage return
  275.      and a linefeed at the end of each line of text.  For example, the
  276.      popular KERMIT communication protocol can convert text to canonical
  277.      form when transmitting it to another system.  This gets converted
  278.      back to local text line terminators by the receiving KERMIT.  This
  279.      makes it easy to share text files across different systems.
  280.       
  281.      But encrypted text cannot be automatically converted by a
  282.      communication protocol, because the plaintext is hidden by
  283.      encipherment.  To remedy this inconvenience, PGP lets you specify
  284.      that the plaintext should be treated as ASCII text (not binary data)
  285.      and should be converted to canonical text form before it gets
  286.      encrypted.  At the receiving end, the decrypted plaintext is
  287.      automatically converted back to whatever text form is appropriate for
  288.      the local environment.
  289.       
  290.      To make PGP assume the plaintext is text that should be converted to
  291.      canonical text before encryption, just add the "t" option when
  292.      encrypting or signing a message, like so:
  293.       
  294.         pgp -et message.txt her_userid
  295.       
  296.      This mode is automatically turned off if PGP detects that the
  297.      plaintext file contains what it thinks is non-text binary data.
  298.       
  299.      For PGP users that use non-English 8-bit character sets, when PGP 
  300.      converts text to canonical form, it may convert data from the local
  301.      character set into the LATIN1 (ISO 8859-1 Latin Alphabet 1) character
  302.      set, depending on the setting of the CHARSET parameter in the PGP
  303.      configuration file.  LATIN1 is a superset of ASCII, with extra
  304.      characters added for many European languages.
  305.  
  306.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am             Page 7
  307.  
  308.  
  309.       
  310.       
  311.       
  312.      Leaving No Traces of Plaintext on the Disk
  313.      ------------------------------------------
  314.       
  315.      After PGP makes a ciphertext file for you, you can have PGP
  316.      automatically overwrite the plaintext file and delete it, leaving no
  317.      trace of plaintext on the disk so that no one can recover it later
  318.      using a disk block scanning utility.  This is useful if the plaintext
  319.      file contains sensitive information that you don't want to keep
  320.      around.
  321.       
  322.      To wipe out the plaintext file after producing the ciphertext file,
  323.      just add the "w" (wipe) option when encrypting or signing a message,
  324.      like so:
  325.       
  326.          pgp -esw message.txt her_userid
  327.       
  328.      This example creates the ciphertext file "message.pgp", and the 
  329.      plaintext file "message.txt" is destroyed beyond recovery.
  330.       
  331.      Obviously, you should be careful with this option.  Also note that
  332.      this will not wipe out any fragments of plaintext that your word
  333.      processor might have created on the disk while you were editing the
  334.      message before running PGP.  Most word processors create backup
  335.      files, scratch files, or both.  Also, it overwrites the file only
  336.      once, which is enough to thwart conventional disk recovery efforts,
  337.      but not enough to withstand a determined and sophisticated effort to
  338.      recover the faint magnetic traces of the data using special disk
  339.      recovery hardware.
  340.       
  341.       
  342.       
  343.      Displaying Decrypted Plaintext on Your Screen
  344.      ---------------------------------------------
  345.       
  346.      To view the decrypted plaintext output on your screen (like the
  347.      Unix-style "more" command), without writing it to a file, use the -m
  348.      (more) option while decrypting:
  349.       
  350.           pgp -m ciphertextfile
  351.       
  352.      This displays the decrypted plaintext display on your screen one
  353.      screenful at a time.
  354.       
  355.       
  356.       
  357.      Making a Message For Her Eyes Only
  358.      ----------------------------------
  359.       
  360.      To specify that the recipient's decrypted plaintext will be shown
  361.      ONLY on her screen and cannot be saved to disk, add the -m option:
  362.       
  363.           pgp -sem message.txt her_userid
  364.       
  365.  
  366.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am             Page 8
  367.  
  368.  
  369.      Later, when the recipient decrypts the ciphertext with her secret key
  370.      and pass phrase, the plaintext will be displayed on her screen but
  371.      will not be saved to disk.  The text will be displayed as it would if
  372.      she used the Unix "more" command, one screenful at a time.  If she
  373.      wants to read the message again, she will have to decrypt the
  374.      ciphertext again.
  375.       
  376.      This feature is the safest way for you to prevent your sensitive
  377.      message from being inadvertently left on the recipient's disk.  This
  378.      feature was added at the request of a user who wanted to send
  379.      intimate messages to his lover, but was afraid she might accidentally
  380.      leave the decrypted messages on her husband's computer.
  381.       
  382.       
  383.       
  384.      Preserving the Original Plaintext Filename
  385.      ------------------------------------------
  386.       
  387.      Normally, PGP names the decrypted plaintext output file with a name
  388.      similar to the input ciphertext filename, but dropping the 
  389.      extension.  Or, you can override that convention by specifying an
  390.      output plaintext filename on the command line with the -o option.
  391.      For most E-mail, this is a reasonable way to name the plaintext file,
  392.      because you get to decide its name when you decipher it, and your
  393.      typical E-mail messages often come from useless original plaintext
  394.      filenames like "to_phil.txt".  
  395.       
  396.      But when PGP encrypts a plaintext file, it always saves the original
  397.      filename and attaches it to the plaintext before it compresses and
  398.      encrypts the plaintext.  Normally, this hidden original filename is
  399.      discarded by PGP when it decrypts, but you can tell PGP you want to
  400.      preserve the original plaintext filename and use it as the name of
  401.      the decrypted plaintext output file.  This is useful if PGP is used
  402.      to on files whose names are important to preserve.
  403.       
  404.      To recover the original plaintext filename while decrypting, add 
  405.      the -p option, like so:
  406.       
  407.           pgp -p ciphertextfile
  408.       
  409.      I usually don't use this option, because if I did, about half of my
  410.      incoming E-mail would decrypt to the same plaintext filenames of
  411.      "to_phil.txt" or "prz.txt".
  412.       
  413.       
  414.       
  415.      Editing Your User ID or Pass Phrase
  416.      -----------------------------------
  417.       
  418.      Sometimes you may need to change your pass phrase, perhaps because
  419.      someone looked over your shoulder while you typed it in.  
  420.       
  421.      Or you may need to change your user ID, because you got married and
  422.      changed your name, or maybe you changed your E-mail address.  Or
  423.      maybe you want to add a second or third user ID to your key, because
  424.      you may be known by more than one name or E-mail address or job
  425.  
  426.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am             Page 9
  427.  
  428.  
  429.      title.  PGP lets you attach more than one user ID to your key, any
  430.      one of which may be used to look up your key on the key ring.
  431.       
  432.      To edit your userid or pass phrase for your secret key:
  433.       
  434.           pgp -ke userid [keyring]
  435.       
  436.      PGP prompts you for a new user ID or a new pass phrase.
  437.       
  438.       
  439.       
  440.      Editing the Trust Parameters for a Public Key
  441.      ---------------------------------------------
  442.       
  443.      Sometimes you need to alter the trust parameters for a public key on
  444.      your public key ring.  For a discussion on what these trust
  445.      parameters mean, see the section "How Does PGP Keep Track of Which
  446.      Keys are Valid?" in the Essential Topics volume of the PGP User's
  447.      Guide.
  448.       
  449.      To edit the trust parameters for a public key:
  450.       
  451.           pgp -ke userid [keyring]
  452.       
  453.       
  454.       
  455.      Checking If Everything is OK on Your Public Key Ring
  456.      ----------------------------------------------------
  457.       
  458.      Normally, PGP automatically checks any new keys or signatures on your
  459.      public key ring and updates all the trust parameters and validity
  460.      scores.  In theory, it keeps all the key validity status information
  461.      up to date as material is added to or deleted from your public key
  462.      ring.  But perhaps you may want to explicitly force PGP to perform a
  463.      comprehensive analysis of your public key ring, checking all the
  464.      certifying signatures, checking the trust parameters, updating all
  465.      the validity scores, and checking your own ultimately-trusted key
  466.      against a backup copy on a write-protected floppy disk.  It may be a
  467.      good idea to do this hygienic maintenance periodically to make sure
  468.      nothing is wrong with your public key ring.  To force PGP to perform
  469.      a full analysis of your public key ring, use the -kc (key ring check)
  470.      command:
  471.       
  472.           pgp -kc
  473.       
  474.      You can also make PGP check all the signatures for just a single
  475.      selected public key by:
  476.       
  477.           pgp -kc userid [keyring]
  478.       
  479.      For further information on how the backup copy of your own key is
  480.      checked, see the description of the BAKRING parameter in the
  481.      configuration file section of this manual.
  482.       
  483.       
  484.       
  485.  
  486.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 10
  487.  
  488.  
  489.      Verifying a Public Key Over the Phone
  490.      -------------------------------------
  491.       
  492.      If you get a public key from someone that is not certified by anyone
  493.      you trust, how can you tell if it's really their key?  The best way
  494.      to verify an uncertified key is to verify it over some independent
  495.      channel other than the one you received the key through.  One
  496.      convenient way to tell, if you know this person and would recognize
  497.      them on the phone, is to call them and verify their key over the
  498.      telephone.  Rather than reading their whole tiresome (ASCII-armored)
  499.      key to them over the phone, you can just read their key's
  500.      "fingerprint" to them.  To see this fingerprint, use the -kvc
  501.      command:
  502.       
  503.           pgp -kvc userid [keyring]
  504.       
  505.      This will display the key with the 16-byte digest of the public key
  506.      components.  Read this 16-byte fingerprint to the key's owner on the
  507.      phone, while she checks it against her own, using the same -kvc
  508.      command at her end.  
  509.       
  510.      You can both verify each other's keys this way, and then you can sign
  511.      each other's keys with confidence.  This is a safe and convenient way
  512.      to get the key trust network started for your circle of friends.
  513.       
  514.       
  515.       
  516.      Using PGP as a Unix-style Filter
  517.      --------------------------------
  518.       
  519.      Unix fans are accustomed to using Unix "pipes" to make two
  520.      applications work together.  The output of one application can be
  521.      directly fed through a pipe to be read as input to another
  522.      application.  For this to work, the applications must be capable of
  523.      reading the raw material from "standard input" and writing the
  524.      finished output to "standard output".  PGP can operate in this mode.
  525.      If you don't understand what this means, then you probably don't need
  526.      this feature.
  527.       
  528.      To use a Unix-style filter mode, reading from standard input and
  529.      writing to standard output, add the -f option, like so:
  530.       
  531.           pgp -feast her_userid <inputfile >outputfile
  532.       
  533.      This feature makes it easier to make PGP work with electronic mail
  534.      applications.
  535.       
  536.      When using PGP in filter mode to decrypt a ciphertext file, you may
  537.      find it useful to use the PGPPASS environmental variable to hold the
  538.      pass phrase, so that you won't be prompted for it.  The PGPPASS
  539.      feature is explained below.
  540.       
  541.       
  542.       
  543.      Suppressing Unneccessary Questions:  BATCHMODE
  544.      ----------------------------------------------
  545.  
  546.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 11
  547.  
  548.  
  549.       
  550.      With the BATCHMODE flag enabled on the command line, PGP will not ask
  551.      any unneccessary questions or prompt for alternate filenames.  Here
  552.      is an example of how to set this flag:
  553.       
  554.          pgp +batchmode cipherfile 
  555.       
  556.      This is useful for running PGP non-interactively from Unix shell
  557.      scripts or MSDOS batch files.  Some key management commands still
  558.      need user interaction even when BATCHMODE is on, so shell scripts may
  559.      need to avoid them.  
  560.       
  561.      BATCHMODE may also be enabled to check the validity of a signature on
  562.      a file.  If there was no signature on the file, the exit code is 1. 
  563.      If it had a signature that was good, the exit code is 0.
  564.       
  565.       
  566.      Force "Yes" Answer to Confirmation Questions:  FORCE
  567.      ----------------------------------------------------
  568.       
  569.      This command-line flag makes PGP assume "yes" for the user response
  570.      to the confirmation request to overwrite an existing file, or when
  571.      removing a key from the keyring via the -kr command.  Here is an
  572.      example of how to set this flag:
  573.       
  574.          pgp +force cipherfile 
  575.      or:
  576.          pgp -kr +force Smith
  577.       
  578.      This feature is useful for running PGP non-interactively from a Unix
  579.      shell script or MSDOS batch file.
  580.       
  581.       
  582.       
  583.      PGP Returns Exit Status to the Shell
  584.      ------------------------------------
  585.       
  586.      To facilitate running PGP in "batch" mode, such as from an MSDOS
  587.      ".bat" file or from a Unix shell script, PGP returns an error exit
  588.      status to the shell.  An exit status code of zero means normal exit,
  589.      while a nonzero exit status indicates some kind of error occurred.
  590.      Different error exit conditions return different exit status codes to
  591.      the shell.
  592.       
  593.       
  594.       
  595.      Environmental Variable for Pass Phrase
  596.      --------------------------------------
  597.       
  598.      Normally, PGP prompts the user to type a pass phrase whenever PGP 
  599.      needs a pass phrase to unlock a secret key.  But it is possible to
  600.      store the pass phrase in an environmental variable from your
  601.      operating system's command shell.  The environmental variable PGPPASS
  602.      can be used to hold the pass phrase that PGP will attempt to use
  603.      first.  If the pass phrase stored in PGPPASS is incorrect, PGP 
  604.      recovers by prompting the user for the correct pass phrase.
  605.  
  606.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 12
  607.  
  608.  
  609.       
  610.      For example, on MSDOS, the shell command:
  611.       
  612.          SET PGPPASS=zaphod beeblebrox for president
  613.       
  614.      would eliminate the prompt for the pass phrase if the pass phrase
  615.      were indeed "zaphod beeblebrox for president". 
  616.       
  617.      This dangerous feature makes your life more convenient if you have to
  618.      regularly deal with a large number of incoming messages addressed to
  619.      your secret key, by eliminating the need for you to repeatedly type
  620.      in your pass phrase every time you run PGP.
  621.       
  622.      I added this feature because of popular demand.  However, this is a
  623.      somewhat dangerous feature, because it keeps your precious pass
  624.      phrase stored somewhere other than just in your brain.  Even worse,
  625.      if you are particularly reckless, it may even be stored on a disk on
  626.      the same computer as your secret key.  It would be particularly
  627.      dangerous and stupid if you were to install this command in a batch
  628.      or script file, such as the MSDOS AUTOEXEC.BAT file.  Someone could
  629.      come along on your lunch hour and steal both your secret key ring and
  630.      the file containing your pass phrase.  
  631.       
  632.      I can't emphasize the importance of this risk enough.  If you are
  633.      contemplating using this feature, be sure to read the sections
  634.      "Exposure on Multi-user Systems" and "How to Protect Secret Keys from
  635.      Disclosure" in this volume and in the Essential Topics volume of the 
  636.      PGP User's Guide.
  637.       
  638.      If you must use this feature, the safest way to do it would be to
  639.      just manually type in the shell command to set PGPPASS every time you
  640.      boot your machine to start using PGP, and then erase it or turn off
  641.      your machine when you are done.  And you should definitely never do
  642.      it in an environment where someone else may have access to your
  643.      machine.  Someone could come along and simply ask your computer to
  644.      display the contents of PGPPASS.
  645.       
  646.       
  647.       
  648.      Setting Configuration Parameters: CONFIG.TXT
  649.      ============================================
  650.       
  651.      PGP has a number of user-settable parameters that can be defined in a
  652.      special configuration text file called "config.txt", in the directory
  653.      pointed to by the shell environmental variable PGPPATH.  Having a
  654.      configuration file enables the user to define various flags and
  655.      parameters for PGP without the burden of having to always define
  656.      these parameters in the PGP command line.
  657.       
  658.      Configuration parameters may be assigned integer values, character
  659.      string values, or on/off values, depending on what kind of
  660.      configuration parameter it is.  A sample configuration file is
  661.      provided with PGP, so you can see some examples.
  662.       
  663.      In the configuration file, blank lines are ignored, as is anything
  664.      following the '#' comment character.  Keywords are not
  665.  
  666.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 13
  667.  
  668.  
  669.      case-sensitive.  
  670.       
  671.      Here is a short sample fragment of a typical configuration file:
  672.       
  673.         # TMP is the directory for PGP scratch files, such as a RAM disk.
  674.         TMP = "e:\"    # Can be overridden by environment variable TMP.
  675.         Armor = on     # Use -a flag for ASCII armor whenever applicable.
  676.         # CERT_DEPTH is how deeply introducers may introduce introducers.
  677.         cert_depth = 3
  678.       
  679.      If some configuration parameters are not defined in the configuration
  680.      file, or if there is no configuration file, or if PGP can't find the
  681.      configuration file, the values for the configuration parameters
  682.      default to some reasonable value.
  683.       
  684.      Note that it is also possible to set these same configuration
  685.      parameters directly from the PGP command line, by preceding the
  686.      parameter setting with a "+" character.  For example, the following
  687.      two PGP commands produce the same effect:
  688.       
  689.           pgp -e +armor=on message.txt smith
  690.      or:  pgp -ea message.txt smith
  691.       
  692.       
  693.      The following is a summary of the various parameters than may be
  694.      defined in the configuration file.
  695.       
  696.       
  697.      TMP - Directory Pathname for Temporary Files
  698.      --------------------------------------------
  699.       
  700.      Default setting:  TMP = ""
  701.       
  702.      The configuration parameter TMP specifies what directory to use for
  703.      PGP's temporary scratch files.  The best place to put them is on a
  704.      RAM disk, if you have one.  That speeds things up quite a bit, and
  705.      increases security somewhat.  If TMP is undefined, the temporary
  706.      files go in the current directory.  If the shell environmental
  707.      variable TMP is defined, PGP instead uses that to specify where the
  708.      temporary files should go.
  709.       
  710.       
  711.      LANGUAGE - Foreign Language Selector
  712.      ------------------------------------
  713.       
  714.      Default setting:  LANGUAGE = "en"
  715.       
  716.      PGP displays various prompts, warning messages, and advisories to the
  717.      user on the screen.  For example, messages such as "File not found.",
  718.      or "Please enter your pass phrase:".  These messages are normally in
  719.      English.  But it is possible to get PGP to display its messages to
  720.      the user in other languages, without having to modify the PGP
  721.      executable program.
  722.       
  723.      A number of people in various countries have translated all of PGP's
  724.      display messages, warnings, and prompts into their native languages. 
  725.  
  726.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 14
  727.  
  728.  
  729.      These hundreds of translated message strings have been placed in a
  730.      special text file called "language.txt", distributed with the PGP
  731.      release.  The messages are stored in this file in English, Spanish,
  732.      Dutch, German, French, Italian, Russian, Latvian, and Lithuanian. 
  733.      Other languages may be added later.  
  734.       
  735.      The configuration parameter LANGUAGE specifies what language to
  736.      display these messages in.  LANGUAGE may be set to "en" for English,
  737.      "es" for Spanish, "de" for German, "nl" for Dutch, "fr" for French,
  738.      "it" for Italian, "ru" for Russian, "lt3" for Lithuanian, "lv" for
  739.      Latvian, "esp" for Esperanto.  For example, if this line appeared in
  740.      the configuration file:
  741.       
  742.         LANGUAGE = "fr"
  743.       
  744.      PGP would select French as the language for its display messages.
  745.      The default setting is English.
  746.       
  747.      When PGP needs to display a message to the user, it looks in the
  748.      "language.txt" file for the equivalent message string in the selected
  749.      foreign language and displays that translated message to the user.
  750.      If PGP can't find the language string file, or if the selected
  751.      language is not in the file, or if that one phrase is not translated
  752.      into the selected language in the file, or if that phrase is missing
  753.      entirely from the file, PGP displays the message in English.
  754.       
  755.      To conserve disk space, most foreign translations are not included 
  756.      in the standard PGP release package, but are available separately.
  757.       
  758.       
  759.      MYNAME - Default User ID for Making Signatures
  760.      ----------------------------------------------
  761.       
  762.      Default setting:  MYNAME = ""
  763.       
  764.      The configuration parameter MYNAME specifies the default user ID to
  765.      use to select the secret key for making signatures.  If MYNAME is not
  766.      defined, the most recent secret key you installed on your secret key
  767.      ring will be used.  The user may also override this setting by
  768.      specifying a user ID on the PGP command line with the -u option.
  769.       
  770.       
  771.      TEXTMODE - Assuming Plaintext is a Text File
  772.      --------------------------------------------
  773.       
  774.      Default setting:  TEXTMODE = off
  775.       
  776.      The configuration parameter TEXTMODE is equivalent to the -t command
  777.      line option.  If enabled, it causes PGP to assume the plaintext is a
  778.      text file, not a binary file, and converts it to "canonical text"
  779.      before encrypting it.  Canonical text has a carriage return and a
  780.      linefeed at the end of each line of text.
  781.       
  782.      This mode will be automatically turned off if PGP detects that the
  783.      plaintext file contains what it thinks is non-text binary data.
  784.       
  785.  
  786.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 15
  787.  
  788.  
  789.      For VAX/VMS systems, the current version of PGP defaults TEXTMODE=ON.
  790.       
  791.      For further details, see the section "Sending ASCII Text Files Across
  792.      Different Machine Environments".
  793.       
  794.       
  795.      CHARSET - Specifies Local Character Set for Text Files
  796.      ------------------------------------------------------
  797.       
  798.      Default setting:  CHARSET = NOCONV
  799.       
  800.      Because PGP must process messages in many non-English languages with
  801.      non-ASCII character sets, you may have a need to tell PGP what local
  802.      character set your machine uses.  This determines what character
  803.      conversions are performed when converting plaintext files to and from
  804.      canonical text format.  This is only a concern if you are in a
  805.      non-English non-ASCII environment.
  806.       
  807.      The configuration parameter CHARSET selects the local character set. 
  808.      The choices are NOCONV (no conversion), LATIN1 (ISO 8859-1 Latin
  809.      Alphabet 1), KOI8 (used by most Russian Unix systems), ALT_CODES
  810.      (used by Russian MSDOS systems), ASCII, and CP850 (used by most
  811.      western European languages on standard MSDOS PCs).
  812.       
  813.      LATIN1 is the internal representation used by PGP for canonical text,
  814.      so if you select LATIN1, no conversion is done.  Note also that PGP
  815.      treats KOI8 as LATIN1, even though it is a completely different
  816.      character set (Russian), because trying to convert KOI8 to either
  817.      LATIN1 or CP850 would be futile anyway.  This means that setting
  818.      CHARSET to NOCONV, LATIN1, or KOI8 are all equivalent to PGP.
  819.       
  820.      If you use MSDOS and expect to send or receive traffic in western
  821.      European languages, set CHARSET = "CP850".  This will make PGP
  822.      convert incoming canonical text messages from LATIN1 to CP850 after
  823.      decryption.  If you use the -t (textmode) option to convert to
  824.      canonical text, PGP will convert your CP850 text to LATIN1 before
  825.      encrypting it.
  826.       
  827.      For further details, see the section "Sending ASCII Text Files Across
  828.      Different Machine Environments".
  829.       
  830.       
  831.      ARMOR - Enable ASCII Armor Output
  832.      ---------------------------------
  833.       
  834.      Default setting:  ARMOR = off
  835.       
  836.      The configuration parameter ARMOR is equivalent to the -a command
  837.      line option.  If enabled, it causes PGP to emit ciphertext or keys in
  838.      ASCII Radix-64 format suitable for transporting through E-mail
  839.      channels.  Output files are named with the ".asc" extension.
  840.       
  841.      If you tend to use PGP mostly for E-mail, it may be a good idea to
  842.      enable this parameter.
  843.       
  844.      For further details, see the section "Sending Ciphertext Through
  845.  
  846.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 16
  847.  
  848.  
  849.      E-mail Channels: Radix-64 Format" in the Essential Topics volume. 
  850.       
  851.       
  852.      ARMORLINES - Size of ASCII Armor Multipart Files
  853.      ------------------------------------------------
  854.       
  855.      Default setting:  ARMORLINES = 720
  856.       
  857.      When PGP creates a very large ".asc" radix-64 file for sending
  858.      ciphertext or keys through the E-mail, it breaks the file up into
  859.      separate chunks small enough to send through Internet mail
  860.      utilities.  Normally, Internet mailers prohibit files larger than
  861.      about 50000 bytes, which means that if we restrict the number of
  862.      lines to about 720, we'll be well within the limit.  The file chunks
  863.      are named with suffixes ".as1", ".as2", ".as3", ... 
  864.       
  865.      The configuration parameter ARMORLINES specifies the maximum number
  866.      of lines to make each chunk in a multipart ".asc" file sequence.  If
  867.      you set it to zero, PGP will not break up the file into chunks.
  868.       
  869.      Fidonet email files usually have an upper limit of about 32K bytes,
  870.      so 450 lines would be appropriate for Fidonet environments.
  871.       
  872.      For further details, see the section "Sending Ciphertext Through
  873.      E-mail Channels: Radix-64 Format" in the Essential Topics volume.
  874.       
  875.       
  876.      KEEPBINARY - Keep Binary Ciphertext Files After Decrypting
  877.      ----------------------------------------------------------
  878.       
  879.      Default setting:  KEEPBINARY = off
  880.       
  881.      When PGP reads a ".asc" file, it recognizes that the file is in
  882.      radix-64 format and will convert it back to binary before processing
  883.      as it normally does, producing as a by-product a ".pgp" ciphertext
  884.      file in binary form.  After further processing to decrypt the ".pgp"
  885.      file, the final output file will be in normal plaintext form.
  886.       
  887.      You may want to delete the binary ".pgp" intermediate file, or you
  888.      may want PGP to delete it for you automatically.  You can still rerun
  889.      PGP on the original ".asc" file.
  890.       
  891.      The configuration parameter KEEPBINARY enables or disables keeping
  892.      the intermediate ".pgp" file during decryption.
  893.       
  894.      For further details, see the section "Sending Ciphertext Through
  895.      E-mail Channels: Radix-64 Format" in the Essential Topics volume.
  896.       
  897.       
  898.      COMPRESS - Enable Compression
  899.      -----------------------------
  900.       
  901.      Default setting:  COMPRESS = on
  902.       
  903.      The configuration parameter COMPRESS enables or disables data
  904.      compression before encryption.  It is used mainly for debugging PGP. 
  905.  
  906.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 17
  907.  
  908.  
  909.      Normally, PGP attempts to compress the plaintext before it encrypts
  910.      it.  Generally, you should leave this alone and let PGP attempt to
  911.      compress the plaintext.
  912.       
  913.       
  914.      COMPLETES_NEEDED - Number of Completely Trusted Introducers Needed
  915.      ------------------------------------------------------------------
  916.       
  917.      Default setting:  COMPLETES_NEEDED = 1
  918.       
  919.      The configuration parameter COMPLETES_NEEDED specifies the minimum
  920.      number of completely trusted introducers required to fully certify a
  921.      public key on your public key ring.  This gives you a way of tuning
  922.      PGP's skepticism.
  923.       
  924.      For further details, see the section "How Does PGP Keep Track of 
  925.      Which Keys are Valid?" in the Essential Topics volume.
  926.       
  927.       
  928.      MARGINALS_NEEDED - Number of Marginally Trusted Introducers Needed
  929.      ------------------------------------------------------------------
  930.       
  931.      Default setting:  MARGINALS_NEEDED = 2
  932.       
  933.      The configuration parameter MARGINALS_NEEDED specifies the minimum
  934.      number of marginally trusted introducers required to fully certify a
  935.      public key on your public key ring.  This gives you a way of tuning
  936.      PGP's skepticism.
  937.       
  938.      For further details, see the section "How Does PGP Keep Track of 
  939.      Which Keys are Valid?" in the Essential Topics volume.
  940.       
  941.       
  942.      CERT_DEPTH - How Deep May Introducers Be Nested
  943.      -----------------------------------------------
  944.       
  945.      Default setting:  CERT_DEPTH = 4
  946.       
  947.      The configuration parameter CERT_DEPTH specifies how many levels deep
  948.      you may nest introducers to certify other introducers to certify
  949.      public keys on your public key ring.  For example, If CERT_DEPTH is
  950.      set to 1, there may only be one layer of introducers below your own
  951.      ultimately-trusted key.  If that were the case, you would be required
  952.      to directly certify the public keys of all trusted introducers on
  953.      your key ring.  If you set CERT_DEPTH to 0, you could have no
  954.      introducers at all, and you would have to directly certify each and
  955.      every key on your public key ring in order to use it.  The minimum
  956.      CERT_DEPTH is 0, the maximum is 8.
  957.       
  958.      For further details, see the section "How Does PGP Keep Track of 
  959.      Which Keys are Valid?" in the Essential Topics volume.
  960.       
  961.       
  962.      BAKRING - Filename for Backup Secret Keyring
  963.      --------------------------------------------
  964.       
  965.  
  966.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 18
  967.  
  968.  
  969.      Default setting:  BAKRING = ""
  970.       
  971.      All of the key certification that PGP does on your public key ring
  972.      ultimately depends on your own ultimately-trusted public key (or
  973.      keys).  To detect any tampering of your public key ring, PGP must
  974.      check that your own key has not been tampered with.  To do this, PGP
  975.      must compare your public key against a backup copy of your secret key
  976.      on some tamper-resistant media, such as a write-protected floppy
  977.      disk.  A secret key contains all the information that your public key
  978.      has, plus some secret components.  This means PGP can check your
  979.      public key against a backup copy of your secret key.
  980.       
  981.      The configuration parameter BAKRING specifies what pathname to use
  982.      for PGP's trusted backup copy of your secret key ring.  On MSDOS, you
  983.      could set it to "a:\secring.pgp" to point it at a write-protected
  984.      backup copy of your secret key ring on your floppy drive.  This check
  985.      is performed only when you execute the PGP -kc option to check your
  986.      whole public key ring.
  987.       
  988.      If BAKRING is not defined, PGP will not check your own key against
  989.      any backup copy.
  990.       
  991.      For further details, see the sections "How to Protect Public Keys
  992.      from Tampering" and "How Does PGP Keep Track of Which Keys are
  993.      Valid?" in the Essential Topics volume.
  994.       
  995.       
  996.      PAGER - Selects Shell Command to Display Plaintext Output
  997.      ---------------------------------------------------------
  998.       
  999.      Default setting:  PAGER = ""
  1000.       
  1001.      PGP lets you view the decrypted plaintext output on your screen (like
  1002.      the Unix-style "more" command), without writing it to a file, if you
  1003.      use the -m (more) option while decrypting.  This displays the
  1004.      decrypted plaintext display on your screen one screenful at a time.
  1005.       
  1006.      If you prefer to use a fancier page display utility, rather than
  1007.      PGP's built-in one, you can specify the name of a shell command that
  1008.      PGP will invoke to display your plaintext output file.  The
  1009.      configuration parameter PAGER specifies the shell command to invoke
  1010.      to display the file.  For example, on MSDOS systems, you might want
  1011.      to use the popular shareware program "list.com" to display your
  1012.      plaintext message.  Assuming you have a copy of "list.com", you may 
  1013.      set PAGER accordingly:
  1014.       
  1015.         PAGER = "list"
  1016.       
  1017.      However, if the sender specified that this file is for your eyes
  1018.      only, and may not be written to disk, PGP always uses its own
  1019.      built-in display function.
  1020.       
  1021.      For further details, see the section "Displaying Decrypted Plaintext 
  1022.      on Your Screen".
  1023.       
  1024.       
  1025.  
  1026.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 19
  1027.  
  1028.  
  1029.      SHOWPASS - Echo Pass Phrase to User
  1030.      -----------------------------------
  1031.       
  1032.      Default setting:  SHOWPASS = off
  1033.       
  1034.      Normally, PGP does not let you see your pass phrase as you type it
  1035.      in.  This makes it harder for someone to look over your shoulder
  1036.      while you type and learn your pass phrase.  But some typing-impaired
  1037.      people have problems typing their pass phrase without seeing what
  1038.      they are typing, and they may be typing in the privacy of their own
  1039.      homes.  So they asked if PGP can be configured to let them see what
  1040.      they type when they type in their pass phrase.
  1041.       
  1042.      The configuration parameter SHOWPASS enables PGP to echo your typing 
  1043.      during pass phrase entry.
  1044.       
  1045.       
  1046.      TZFIX - Timezone Adjustment
  1047.      ---------------------------
  1048.       
  1049.      Default setting:  TZFIX = 0
  1050.       
  1051.      PGP provides timestamps for keys and signature certificates in
  1052.      Greenwich Mean Time (GMT), or Coordinated Universal Time (UTC), which
  1053.      means the same thing for our purposes.  When PGP asks the system for
  1054.      the time of day, the system is supposed to provide it in GMT.  
  1055.       
  1056.      But sometimes, because of improperly configured MSDOS systems, the
  1057.      system time is returned in US Pacific Standard Time time plus 8
  1058.      hours.  Sounds weird, doesn't it?  Perhaps because of some sort of US
  1059.      west-coast jingoism, MSDOS presumes local time is US Pacific time,
  1060.      and pre-corrects Pacific time to GMT.  This adversely affects the
  1061.      behavior of the internal MSDOS GMT time function that PGP calls. 
  1062.      However, if your MSDOS environmental variable TZ is already properly
  1063.      defined for your timezone, this corrects the misconception MSDOS has
  1064.      that the whole world lives on the US west coast.  
  1065.       
  1066.      The configuration parameter TZFIX specifies the number of hours to
  1067.      add to the system time function to get GMT, for GMT timestamps on
  1068.      keys and signatures.  If the MSDOS environmental variable TZ is
  1069.      defined properly, you can leave TZFIX=0.  Unix systems usually
  1070.      shouldn't need to worry about setting TZFIX at all.  But if you are
  1071.      using some other obscure operating system that doesn't know about
  1072.      GMT, you may have to use TZFIX to adjust the system time to GMT. 
  1073.       
  1074.      On MSDOS systems that do not have TZ defined in the environment, you
  1075.      should make TZFIX=0 for California, -1 for Colorado, -2 for Chicago,
  1076.      -3 for New York, -8 for London, -9 for Amsterdam.  In the summer,
  1077.      TZFIX should be manually decremented from these values.  What a mess.
  1078.       
  1079.      It would be much cleaner to set your MSDOS environmental variable TZ
  1080.      in your AUTOEXEC.BAT file, and not use the TZFIX correction.  Then
  1081.      MSDOS gives you good GMT timestamps, and will handle daylight savings
  1082.      time adjustments for you.  Here are some sample lines to insert into
  1083.      AUTOEXEC.BAT, depending on your time zone:
  1084.       
  1085.  
  1086.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 20
  1087.  
  1088.  
  1089.      For Los Angeles:  SET TZ=PST8PDT
  1090.      For Denver:       SET TZ=MST7MDT
  1091.      For Arizona:      SET TZ=MST7
  1092.         (Arizona never uses daylight savings time)
  1093.      For Chicago:      SET TZ=CST6CDT
  1094.      For New York:     SET TZ=EST5EDT
  1095.      For London:       SET TZ=GMT0BST
  1096.      For Amsterdam:    SET TZ=MET-1DST
  1097.      For Moscow:       SET TZ=MSK-3MSD
  1098.      For Aukland:      SET TZ=NZT-13
  1099.       
  1100.       
  1101.      CLEARSIG - Enable Signed Messages to be Encapsulated as Clear Text
  1102.      ------------------------------------------------------------------
  1103.       
  1104.      Default setting:  CLEARSIG = off
  1105.       
  1106.      Normally, unencrypted PGP signed messages have a signature
  1107.      certificate prepended in binary form.  To send this through a 7-bit
  1108.      E-mail channel, radix-64 ASCII armor is applied (see the ARMOR
  1109.      parameter), rendering the message unreadable to casual human eyes,
  1110.      even though the message is not actually encrypted.  The recipient
  1111.      must use PGP to strip the armor off before reading the message.
  1112.       
  1113.      If the original plaintext message is in text (not binary) form, there
  1114.      is a way to send it through an E-mail channel in such a way that the
  1115.      ASCII armor is applied only to the binary signature certificate, but
  1116.      not to the plaintext message.  This makes it possible to read the
  1117.      signed message with human eyes, without the aid of PGP.  Of course,
  1118.      you still need PGP to actually check the signature.
  1119.       
  1120.      To enable this feature, set CLEARSIG=ON, and set ARMOR=ON (or use
  1121.      the -a option), and set TEXTMODE=ON (or use the -t option).  For
  1122.      example, you can set CLEARSIG directly from the command line:
  1123.       
  1124.           pgp -sta +clearsig=on message.txt
  1125.       
  1126.      This message representation is analogous to the MIC-CLEAR message type
  1127.      used in Internet Privacy Enhanced Mail (PEM).  It is important to
  1128.      note that since this method only applies ASCII armor to the binary
  1129.      signature certificate, and not to the message text itself, there is
  1130.      some risk that the unarmored message may suffer some accidental
  1131.      molestation while en route.  This can happen if it passes through
  1132.      some E-mail gateway that performs character set conversions, or in
  1133.      some cases extra spaces may be added to or stripped from the ends of
  1134.      lines.  If this occurs, the signature will fail to verify, which may
  1135.      give a false indication of intentional tampering.  But since PEM
  1136.      lives under a similar vulnerability, it seems worth having this
  1137.      feature despite the risks.
  1138.       
  1139.      Beginning with PGP version 2.2, trailing blanks are ignored on each
  1140.      line in calculating the signature for text in CLEARSIG mode.
  1141.       
  1142.       
  1143.      VERBOSE - Quiet, Normal, or Verbose Messages
  1144.      --------------------------------------------
  1145.  
  1146.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 21
  1147.  
  1148.  
  1149.       
  1150.      Default setting:  VERBOSE = 1
  1151.       
  1152.      VERBOSE may be set to 0, 1, or 2, depending on how much detail you
  1153.      want to see from PGP diagnostic messages.  The settings are:
  1154.       
  1155.      0 - Display messages only if there is a problem.  Unix fans wanted
  1156.      this "quiet mode" setting.
  1157.       
  1158.      1 - Normal default setting.  Displays a reasonable amount of detail
  1159.      in diagnostic or advisory messages.
  1160.       
  1161.      2 - Displays maximum information, usually to help diagnose problems
  1162.      in PGP.  Not recommended for normal use.  Besides, PGP doesn't have
  1163.      any problems, right?
  1164.       
  1165.       
  1166.      INTERACTIVE - Ask for Confirmation for Key Adds
  1167.      -----------------------------------------------
  1168.       
  1169.      Default Setting:  INTERACTIVE = off
  1170.       
  1171.      Enabling this mode will mean that if you add a key file containing
  1172.      multiple keys to your key ring, PGP will ask for confirmation for
  1173.      each key before adding it to your key ring.
  1174.       
  1175.       
  1176.       
  1177.  
  1178.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 22
  1179.  
  1180.  
  1181.       
  1182.      Protecting Against Bogus Timestamps
  1183.      ===================================
  1184.       
  1185.      A somewhat obscure vulnerability of PGP involves dishonest users
  1186.      creating bogus timestamps on their own public key certificates and
  1187.      signatures.  You can skip over this section if you are a casual user
  1188.      and aren't deeply into obscure public key protocols.
  1189.       
  1190.      There's nothing to stop a dishonest user from altering the date and
  1191.      time setting of his own system's clock, and generating his own public
  1192.      key certificates and signatures that appear to have been created at a
  1193.      different time.  He can make it appear that he signed something
  1194.      earlier or later than he actually did, or that his public/secret key
  1195.      pair was created earlier or later.  This may have some legal or
  1196.      financial benefit to him, for example by creating some kind of 
  1197.      loophole that might allow him to repudiate a signature.
  1198.       
  1199.      A remedy for this could involve some trustworthy Certifying Authority
  1200.      or notary that would create notarized signatures with a trustworthy
  1201.      timestamp.  This might not necessarily require a centralized
  1202.      authority.  Perhaps any trusted introducer or disinterested party
  1203.      could serve this function, the same way real notary publics do now. 
  1204.      A public key certificate could be signed by the notary, and the
  1205.      trusted timestamp in the notary's signature would have some legal
  1206.      significance.  The notary could enter the signed certificate into a
  1207.      special certificate log controlled by the notary.  Anyone can read
  1208.      this log. 
  1209.       
  1210.      The notary could also sign other people's signatures, creating a
  1211.      signature certificate of a signature certificate.  This would serve
  1212.      as a witness to the signature the same way real notaries do now with
  1213.      paper.  Again, the notary could enter the detached signature
  1214.      certificate (without the actual whole document that was signed) into
  1215.      a log controlled by the notary.  The notary's signature would have a
  1216.      trusted timestamp, which might have greater credibility than the
  1217.      timestamp in the original signature.  A signature becomes "legal" if
  1218.      it is signed and logged by the notary.
  1219.       
  1220.      This problem of certifying signatures with notaries and trusted
  1221.      timestamps warrants further discussion.  This can of worms will not
  1222.      be fully covered here now.  There is a good treatment of this topic
  1223.      in Denning's 1983 article in IEEE Computer (see references).  There
  1224.      is much more detail to be worked out in these various certifying
  1225.      schemes.  This will develop further as PGP usage increases and other
  1226.      public key products develop their own certifying schemes.
  1227.       
  1228.       
  1229.  
  1230.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 23
  1231.  
  1232.  
  1233.       
  1234.      A Peek Under the Hood
  1235.      =====================
  1236.       
  1237.      Let's take a look at a few internal features of PGP.
  1238.       
  1239.       
  1240.      Random Numbers
  1241.      --------------
  1242.       
  1243.      PGP uses a cryptographically strong pseudorandom number generator for
  1244.      creating temporary conventional session keys.  The seed file for this
  1245.      is called  "randseed.bin".  It too can be kept in whatever directory
  1246.      is indicated by the PGPPATH environmental variable.  If this random
  1247.      seed file does not exist, it is automatically created and seeded with
  1248.      truly random numbers derived from timing your keystroke latencies.  
  1249.       
  1250.      This generator reseeds the disk file each time it is used by mixing
  1251.      in new key material partially derived with the time of day and other
  1252.      truly random sources.  It uses the conventional encryption algorithm
  1253.      as an engine for the random number generator.  The seed file contains
  1254.      both random seed material and random key material to key the
  1255.      conventional encryption engine for the random generator.
  1256.       
  1257.      This random seed file should be at least slightly protected from
  1258.      disclosure, to reduce the risk of an attacker deriving your next or
  1259.      previous session keys.  The attacker would have a very hard time
  1260.      getting anything useful from capturing this random seed file, because
  1261.      the file is cryptographically laundered before and after each use. 
  1262.      Nonetheless, it seems prudent to at least try to keep it from falling
  1263.      into the wrong hands.
  1264.       
  1265.      If you feel uneasy about trusting any algorithmically derived random
  1266.      number source however strong, keep in mind that you already trust the
  1267.      strength of the same conventional cipher to protect your messages. 
  1268.      If it's strong enough for that, then it should be strong enough to
  1269.      use as a source of random numbers for temporary session keys.  Note
  1270.      that PGP still uses truly random numbers from physical sources
  1271.      (mainly keyboard timings) to generate long-term public/secret key
  1272.      pairs.
  1273.       
  1274.       
  1275.       
  1276.      PGP's Conventional Encryption Algorithm
  1277.      ---------------------------------------
  1278.       
  1279.      As described earlier, PGP "bootstraps" into a conventional single-key
  1280.      encryption algorithm by using a public key algorithm to encipher the
  1281.      conventional session key and then switching to fast conventional
  1282.      cryptography.  So let's talk about this conventional encryption
  1283.      algorithm.  It isn't the DES.
  1284.       
  1285.      The Federal Data Encryption Standard (DES) is a good algorithm for
  1286.      most commercial applications.  However, the Government does not trust
  1287.      the DES to protect its own classified data.  Perhaps this is because
  1288.      the DES key length is 56 bits, short enough for a brute force attack
  1289.  
  1290.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 24
  1291.  
  1292.  
  1293.      with a special purpose machine built from massive numbers of DES
  1294.      chips.  Also, Biham and Shamir have had some success recently on
  1295.      attacking the full 16-round DES.
  1296.       
  1297.      PGP does not use the DES as its conventional single-key algorithm to
  1298.      encrypt messages.  Instead, PGP uses a different conventional
  1299.      single-key block encryption algorithm, called IDEA(tm).  A future
  1300.      version of PGP may support the DES as an option, if enough users
  1301.      ask for it.  But I suspect IDEA is better than DES.
  1302.       
  1303.      For the cryptographically curious, the IDEA cipher has a 64-bit block
  1304.      size for the plaintext and the ciphertext.  It uses a key size of 128
  1305.      bits.  It is based on the design concept of "mixing operations from
  1306.      different algebraic groups".  It runs much faster in software than
  1307.      the DES.  Like the DES, it can be used in cipher feedback (CFB) and
  1308.      cipher block chaining (CBC) modes.  PGP uses it in 64-bit CFB mode.
  1309.       
  1310.      The IPES/IDEA block cipher was developed at ETH in Zurich by James L.
  1311.      Massey and Xuejia Lai, and published in 1990.  This is not a 
  1312.      "home-grown" algorithm.  Its designers have a distinguished
  1313.      reputation in the cryptologic community.  Early published papers on
  1314.      the algorithm called it IPES (Improved Proposed Encryption Standard),
  1315.      but they later changed the name to IDEA (International Data
  1316.      Encryption Algorithm).  So far, IDEA has resisted attack much better
  1317.      than other ciphers such as FEAL, REDOC-II, LOKI, Snefru and Khafre. 
  1318.      And preliminary evidence suggests that IDEA may be more resistant
  1319.      than the DES to Biham & Shamir's highly successful differential
  1320.      cryptanalysis attack.  Biham and Shamir have been examining the IDEA
  1321.      cipher for weaknesses, without success.  Academic cryptanalyst groups
  1322.      in Belgium, England, and Germany are also attempting to attack it, as
  1323.      well as the military services from several European countries.  As
  1324.      this new cipher continues to attract attack efforts from the most
  1325.      formidable quarters of the cryptanalytic world, confidence in IDEA is
  1326.      growing with the passage of time.
  1327.       
  1328.      A famous hockey player once said, "I try to skate to where I think
  1329.      the puck will be."  A lot of people are starting to feel that the
  1330.      days are numbered for the DES.  I'm skating toward IDEA.
  1331.       
  1332.      It is not ergonomically practical to use pure RSA with large keys to
  1333.      encrypt and decrypt long messages.  Absolutely no one does it that way
  1334.      in the real world.  But perhaps you are concerned that the whole
  1335.      package is weakened if we use a hybrid public-key and conventional
  1336.      scheme just to speed things up.  After all, a chain is only as strong
  1337.      as its weakest link.  Many people less experienced in cryptography
  1338.      mistakenly believe that RSA is intrinsically stronger than any
  1339.      conventional cipher.  It's not.  RSA can be made weak by using weak
  1340.      keys, and conventional ciphers can be made strong by choosing good
  1341.      algorithms.  It's usually difficult to tell exactly how strong a good
  1342.      conventional cipher is, without actually cracking it.  A really good
  1343.      conventional cipher might possibly be harder to crack than even a
  1344.      "military grade" RSA key.  The attraction of public key cryptography
  1345.      is not because it is intrinsically stronger than a conventional
  1346.      cipher-- its appeal is because it helps you manage keys more
  1347.      conveniently.
  1348.       
  1349.  
  1350.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 25
  1351.  
  1352.  
  1353.       
  1354.       
  1355.      Data Compression
  1356.      ----------------
  1357.       
  1358.      PGP normally compresses the plaintext before encrypting it.  It's too
  1359.      late to compress it after it has been encrypted; encrypted data is
  1360.      incompressible.  Data compression saves modem transmission time and
  1361.      disk space and more importantly strengthens cryptographic security.  
  1362.      Most cryptanalysis techniques exploit redundancies found in the
  1363.      plaintext to crack the cipher.  Data compression reduces this
  1364.      redundancy in the plaintext, thereby greatly enhancing resistance to 
  1365.      cryptanalysis.  It takes extra time to compress the plaintext, but 
  1366.      from a security point of view it seems worth it, at least in my 
  1367.      cautious opinion. 
  1368.       
  1369.      Files that are too short to compress or just don't compress well are
  1370.      not compressed by PGP.  
  1371.       
  1372.      If you prefer, you can use PKZIP to compress the plaintext before
  1373.      encrypting it.  PKZIP is a widely-available and effective MSDOS
  1374.      shareware compression utility from PKWare, Inc.  Or you can use ZIP,
  1375.      a PKZIP-compatible freeware compression utility on Unix and other
  1376.      systems, available from Jean-Loup Gailly.  There is some advantage in
  1377.      using PKZIP or ZIP in certain cases, because unlike PGP's built-in
  1378.      compression algorithm, PKZIP and ZIP have the nice feature of
  1379.      compressing multiple files into a single compressed file, which is
  1380.      reconstituted again into separate files when decompressed.  PGP will
  1381.      not try to compress a plaintext file that has already been
  1382.      compressed.  After decrypting, the recipient can decompress the
  1383.      plaintext with PKUNZIP.  If the decrypted plaintext is a PKZIP
  1384.      compressed file, PGP automatically recognizes this and advises the 
  1385.      recipient that the decrypted plaintext appears to be a PKZIP file.
  1386.       
  1387.      For the technically curious readers, the current version of PGP uses
  1388.      the freeware ZIP compression routines written by Jean-loup Gailly,
  1389.      Mark Adler, and Richard B. Wales.  This ZIP software uses
  1390.      functionally-equivalent compression algorithms as those used by
  1391.      PKWare's new PKZIP 2.0.  This ZIP compression software was selected
  1392.      for PGP mainly because of its free portable C source code
  1393.      availability, and because it has a really good compression ratio, and
  1394.      because it's fast.  
  1395.       
  1396.      Peter Gutmann has also written a nice compression utility called
  1397.      HPACK, available for free from many Internet FTP sites.  It encrypts
  1398.      the compressed archives, using PGP data formats and key rings.  He
  1399.      wanted me to mention that here.
  1400.       
  1401.       
  1402.       
  1403.      Message Digests and Digital Signatures
  1404.      --------------------------------------
  1405.       
  1406.      To create a digital signature, PGP encrypts with your secret key. 
  1407.      But PGP doesn't actually encrypt your entire message with your secret
  1408.      key-- that would take too long.  Instead, PGP encrypts a "message
  1409.  
  1410.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 26
  1411.  
  1412.  
  1413.      digest".  
  1414.       
  1415.      The message digest is a compact (128 bit) "distillate" of your
  1416.      message, similar in concept to a checksum.  You can also think of it
  1417.      as a "fingerprint" of the message.  The message digest "represents"
  1418.      your message, such that if the message were altered in any way, a
  1419.      different message digest would be computed from it.  This makes it
  1420.      possible to detect any changes made to the message by a forger.  A
  1421.      message digest is computed using a cryptographically strong one-way
  1422.      hash function of the message.  It would be computationally infeasible
  1423.      for an attacker to devise a substitute message that would produce an
  1424.      identical message digest.  In that respect, a message digest is much
  1425.      better than a checksum, because it is easy to devise a different
  1426.      message that would produce the same checksum.  But like a checksum,
  1427.      you can't derive the original message from its message digest.  
  1428.       
  1429.      A message digest alone is not enough to authenticate a message.  The
  1430.      message digest algorithm is publicly known, and does not require
  1431.      knowledge of any secret keys to calculate.  If all we did was attach
  1432.      a message digest to a message, then a forger could alter a message
  1433.      and simply attach a new message digest calculated from the new
  1434.      altered message.  To provide real authentication, the sender has to
  1435.      encrypt (sign) the message digest with his secret key.  
  1436.       
  1437.      A message digest is calculated from the message by the sender.  The
  1438.      sender's secret key is used to encrypt the message digest and an
  1439.      electronic timestamp, forming a digital signature, or signature
  1440.      certificate.  The sender sends the digital signature along with the
  1441.      message.  The receiver receives the message and the digital
  1442.      signature, and recovers the original message digest from the digital
  1443.      signature by decrypting it with the sender's public key.  The
  1444.      receiver computes a new message digest from the message, and checks
  1445.      to see if it matches the one recovered from the digital signature.  If
  1446.      it matches, then that proves the message was not altered, and it came
  1447.      from the sender who owns the public key used to check the signature.
  1448.       
  1449.      A potential forger would have to either produce an altered message
  1450.      that produces an identical message digest (which is infeasible), or
  1451.      he would have to create a new digital signature from a different
  1452.      message digest (also infeasible, without knowing the true sender's
  1453.      secret key).
  1454.       
  1455.      Digital signatures prove who sent the message, and that the message
  1456.      was not altered either by error or design.  It also provides
  1457.      non-repudiation, which means the sender cannot easily disavow his
  1458.      signature on the message.
  1459.       
  1460.      Using message digests to form digital signatures has other advantages
  1461.      besides being faster than directly signing the entire actual message
  1462.      with the secret key.  Using message digests allows signatures to be
  1463.      of a standard small fixed size, regardless of the size of the actual
  1464.      message.  It also allows the software to check the message integrity
  1465.      automatically, in a manner similar to using checksums.  And it allows
  1466.      signatures to be stored separately from messages, perhaps even in a
  1467.      public archive, without revealing sensitive information about the
  1468.      actual messages, because no one can derive any message content from a
  1469.  
  1470.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 27
  1471.  
  1472.  
  1473.      message digest.
  1474.       
  1475.      The message digest algorithm used here is the MD5 Message Digest
  1476.      Algorithm, placed in the public domain by RSA Data Security, Inc.
  1477.      MD5's designer, Ronald Rivest, writes this about MD5:
  1478.       
  1479.      "It is conjectured that the difficulty of coming up with two messages
  1480.      having the same message digest is on the order of 2^64 operations,
  1481.      and that the difficulty of coming up with any message having a given
  1482.      message digest is on the order of 2^128 operations.  The MD5
  1483.      algorithm has been carefully scrutinized for weaknesses.  It is,
  1484.      however, a relatively new algorithm and further security analysis is
  1485.      of course justified, as is the case with any new proposal of this
  1486.      sort.  The level of security provided by MD5 should be sufficient for
  1487.      implementing very high security hybrid digital signature schemes
  1488.      based on MD5 and the RSA public-key cryptosystem."
  1489.       
  1490.       
  1491.       
  1492.      Compatibility with Previous Versions of PGP
  1493.      ===========================================
  1494.       
  1495.      I'm sorry, PGP version 2.0 is not compatible with PGP version 1.0.  
  1496.      If you have keys generated with version 1.0, you will have to
  1497.      generate new keys to use with this version.  This version of PGP uses
  1498.      all new algorithms for conventional cryptography, compression, and
  1499.      message digests, as well as using a much better approach to key
  1500.      management.  There were just too many changes to make it compatible
  1501.      with the old format messages, signatures, and keys.  Perhaps we could
  1502.      have provided a special conversion utility to convert old keys into
  1503.      new keys, but we were all tired and wanted to get the new release out
  1504.      the door.  Besides, converting the old keys into new keys would
  1505.      probably create more problems than it would solve, because we have
  1506.      changed to a new recommended uniform style for the user ID that
  1507.      includes the full name and E-mail address in a particular syntax.
  1508.       
  1509.      There is compatibility from version 2.0 to higher versions.  Because
  1510.      new features are added, older versions may not always be able to
  1511.      handle some files created with newer versions. 
  1512.       
  1513.      We made some effort to design the internal data structures of this
  1514.      version of PGP to be adaptable to future changes, so that hopefully
  1515.      you will not be required to discard and regenerate your keys in future
  1516.      versions.
  1517.       
  1518.       
  1519.  
  1520.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 28
  1521.  
  1522.  
  1523.       
  1524.      Vulnerabilities
  1525.      ===============
  1526.       
  1527.      No data security system is impenetrable.  PGP can be circumvented in
  1528.      a variety of ways.  In any data security system, you have to ask
  1529.      yourself if the information you are trying to protect is more
  1530.      valuable to your attacker than the cost of the attack.  This should
  1531.      lead you to protecting yourself from the cheapest attacks, while not
  1532.      worrying about the more expensive attacks.  
  1533.       
  1534.      Some of the discussion that follows may seem unduly paranoid, but
  1535.      such an attitude is appropriate for a reasonable discussion of
  1536.      vulnerability issues. 
  1537.       
  1538.       
  1539.      Compromised Pass Phrase and Secret Key
  1540.      --------------------------------------
  1541.       
  1542.      Probably the simplest attack is if you leave your pass phrase for
  1543.      your secret key written down somewhere.  If someone gets it and also
  1544.      gets your secret key file, they can read your messages and make
  1545.      signatures in your name.  
  1546.       
  1547.      Don't use obvious passwords that can be easily guessed, such as the
  1548.      names of your kids or spouse.  If you make your pass phrase a single
  1549.      word, it can be easily guessed by having a computer try all the words
  1550.      in the dictionary until it finds your password.  That's why a pass
  1551.      phrase is so much better than a password.  A more sophisticated
  1552.      attacker may have his computer scan a book of famous quotations to
  1553.      find your pass phrase.  An easy to remember but hard to guess pass
  1554.      phrase can be easily constructed by some creatively nonsensical
  1555.      sayings or very obscure literary quotes.  
  1556.       
  1557.      For further details, see the section "How to Protect Secret Keys from
  1558.      Disclosure" in the Essential Topics volume of the PGP User's Guide.
  1559.       
  1560.       
  1561.      Public Key Tampering
  1562.      --------------------
  1563.       
  1564.      A major vulnerability exists if public keys are tampered with.  This
  1565.      may be the most crucially important vulnerability of a public key
  1566.      cryptosystem, in part because most novices don't immediately
  1567.      recognize it.  The importance of this vulnerability, and appropriate
  1568.      hygienic countermeasures, are detailed in the section "How to Protect
  1569.      Public Keys from Tampering" in the Essential Topics volume.    
  1570.       
  1571.      To summarize:  When you use someone's public key, make certain it has
  1572.      not been tampered with.  A new public key from someone else should be
  1573.      trusted only if you got it directly from its owner, or if it has been
  1574.      signed by someone you trust.  Make sure no one else can tamper with
  1575.      your own public key ring.  Maintain physical control of both your
  1576.      public key ring and your secret key ring, preferably on your own
  1577.      personal computer rather than on a remote timesharing system.  Keep a
  1578.      backup copy of both key rings.
  1579.  
  1580.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 29
  1581.  
  1582.  
  1583.       
  1584.       
  1585.      "Not Quite Deleted" Files
  1586.      -------------------------
  1587.       
  1588.      Another potential security problem is caused by how most operating
  1589.      systems delete files.  When you encrypt a file and then delete the
  1590.      original plaintext file, the operating system doesn't actually
  1591.      physically erase the data.  It merely marks those disk blocks as
  1592.      deleted, allowing the space to be reused later.  It's sort of like
  1593.      discarding sensitive paper documents in the paper recycling bin
  1594.      instead of the paper shredder.  The disk blocks still contain the
  1595.      original sensitive data you wanted to erase, and will probably
  1596.      eventually be overwritten by new data at some point in the future. 
  1597.      If an attacker reads these deleted disk blocks soon after they have
  1598.      been deallocated, he could recover your plaintext. 
  1599.       
  1600.      In fact this could even happen accidentally, if for some reason
  1601.      something went wrong with the disk and some files were accidentally
  1602.      deleted or corrupted.  A disk recovery program may be run to recover
  1603.      the damaged files, but this often means some previously deleted files
  1604.      are resurrected along with everything else.  Your confidential files
  1605.      that you thought were gone forever could then reappear and be
  1606.      inspected by whomever is attempting to recover your damaged disk.  
  1607.      Even while you are creating the original message with a word
  1608.      processor or text editor, the editor may be creating multiple
  1609.      temporary copies of your text on the disk, just because of its
  1610.      internal workings.  These temporary copies of your text are deleted
  1611.      by the word processor when it's done, but these sensitive fragments
  1612.      are still on your disk somewhere.  
  1613.       
  1614.      Let me tell you a true horror story.  I had a friend, married with
  1615.      young children, who once had a brief and not very serious affair. 
  1616.      She wrote a letter to her lover on her word processor, and deleted
  1617.      the letter after she sent it.  Later, after the affair was over, the
  1618.      floppy disk got damaged somehow and she had to recover it because it
  1619.      contained other important documents.  She asked her husband to
  1620.      salvage the disk, which seemed perfectly safe because she knew she
  1621.      had deleted the incriminating letter.  Her husband ran a commercial
  1622.      disk recovery software package to salvage the files.  It recovered
  1623.      the files alright, including the deleted letter.  He read it, which 
  1624.      set off a tragic chain of events.  
  1625.       
  1626.      The only way to prevent the plaintext from reappearing is to somehow
  1627.      cause the deleted plaintext files to be overwritten.  Unless you know
  1628.      for sure that all the deleted disk blocks will soon be reused, you
  1629.      must take positive steps to overwrite the plaintext file, and also
  1630.      any fragments of it on the disk left by your word processor.  You can
  1631.      overwrite the original plaintext file after encryption by using the
  1632.      PGP -w (wipe) option.  You can take care of any fragments of the
  1633.      plaintext left on the disk by using any of the disk utilities
  1634.      available that can overwrite all of the unused blocks on a disk.  For
  1635.      example, the Norton Utilities for MSDOS can do this.
  1636.       
  1637.      Even if you overwrite the plaintext data on the disk, it may still be
  1638.      possible for a resourceful and determined attacker to recover the
  1639.  
  1640.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 30
  1641.  
  1642.  
  1643.      data.  Faint magnetic traces of the original data remain on the disk
  1644.      after it has been overwritten.  Special sophisticated disk recovery
  1645.      hardware can sometimes be used to recover the data.
  1646.       
  1647.       
  1648.      Viruses and Trojan Horses
  1649.      -------------------------
  1650.       
  1651.      Another attack could involve a specially-tailored hostile computer
  1652.      virus or worm that might infect PGP or your operating system.  This
  1653.      hypothetical virus could be designed to capture your pass phrase or
  1654.      secret key or deciphered messages, and covertly write the captured
  1655.      information to a file or send it through a network to the virus's
  1656.      owner.  Or it might alter PGP's behavior so that signatures are not
  1657.      properly checked.  This attack is cheaper than cryptanalytic attacks.
  1658.       
  1659.      Defending against this falls under the category of defending against
  1660.      viral infection generally.  There are some moderately capable
  1661.      anti-viral products commercially available, and there are hygienic
  1662.      procedures to follow that can greatly reduce the chances of viral
  1663.      infection.  A complete treatment of anti-viral and anti-worm
  1664.      countermeasures is beyond the scope of this document.  PGP has no
  1665.      defenses against viruses, and assumes your own personal computer is a
  1666.      trustworthy execution environment.  If such a virus or worm actually
  1667.      appeared, hopefully word would soon get around warning everyone.  
  1668.       
  1669.      Another similar attack involves someone creating a clever imitation
  1670.      of PGP that behaves like PGP in most respects, but doesn't work the
  1671.      way it's supposed to.  For example, it might be deliberately crippled
  1672.      to not check signatures properly, allowing bogus key certificates to
  1673.      be accepted.  This "Trojan horse" version of PGP is not hard for an
  1674.      attacker to create, because PGP source code is widely available, so
  1675.      anyone could modify the source code and produce a lobotomized zombie
  1676.      imitation PGP that looks real but does the bidding of its diabolical
  1677.      master.  This Trojan horse version of PGP could then be widely
  1678.      circulated, claiming to be from me.  How insidious.
  1679.       
  1680.      You should make an effort to get your copy of PGP from a reliable
  1681.      source, whatever that means.  Or perhaps from more than one
  1682.      independent source, and compare them with a file comparison utility.
  1683.       
  1684.      There are other ways to check PGP for tampering, using digital
  1685.      signatures.  If someone you trust signs the executable version of
  1686.      PGP, vouching for the fact that it has not been infected or tampered
  1687.      with, you can be reasonably sure that you have a good copy.  You
  1688.      could use an earlier trusted version of PGP to check the signature on
  1689.      a later suspect version of PGP.  But this will not help at all if
  1690.      your operating system is infected, nor will it detect if your
  1691.      original copy of PGP.EXE has been maliciously altered in such a way
  1692.      as to compromise its own ability to check signatures.  This test also
  1693.      assumes that you have a good trusted copy of the public key that you
  1694.      use to check the signature on the PGP executable.
  1695.       
  1696.       
  1697.      Physical Security Breach
  1698.      ------------------------
  1699.  
  1700.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 31
  1701.  
  1702.  
  1703.       
  1704.      A physical security breach may allow someone to physically acquire
  1705.      your plaintext files or printed messages.  A determined opponent
  1706.      might accomplish this through burglary, trash-picking, unreasonable
  1707.      search and seizure, or bribery, blackmail or infiltration of your
  1708.      staff.  Some of these attacks may be especially feasible against
  1709.      grassroots political organizations that depend on a largely volunteer
  1710.      staff.  It has been widely reported in the press that the FBI's
  1711.      COINTELPRO program used burglary, infiltration, and illegal bugging
  1712.      against antiwar and civil rights groups.  And look what happened at
  1713.      the Watergate Hotel.  
  1714.       
  1715.      Don't be lulled into a false sense of security just because you have
  1716.      a cryptographic tool.  Cryptographic techniques protect data only
  1717.      while it's encrypted-- direct physical security violations can still
  1718.      compromise plaintext data or written or spoken information.  
  1719.       
  1720.      This kind of attack is cheaper than cryptanalytic attacks on PGP.
  1721.       
  1722.       
  1723.      Tempest Attacks
  1724.      ---------------
  1725.       
  1726.      Another kind of attack that has been used by well-equipped opponents
  1727.      involves the remote detection of the electromagnetic signals from
  1728.      your computer.  This expensive and somewhat labor-intensive attack is
  1729.      probably still cheaper than direct cryptanalytic attacks.  An
  1730.      appropriately instrumented van can park near your office and remotely
  1731.      pick up all of your keystrokes and messages displayed on your
  1732.      computer video screen.  This would compromise all of your passwords,
  1733.      messages, etc.  This attack can be thwarted by properly shielding all
  1734.      of your computer equipment and network cabling so that it does not
  1735.      emit these signals.  This shielding technology is known as "Tempest",
  1736.      and is used by some Government agencies and defense contractors.  
  1737.      There are hardware vendors who supply Tempest shielding commercially,
  1738.      although it may be subject to some kind of Government licensing.  Now
  1739.      why do you suppose the Government would restrict access to Tempest
  1740.      shielding?
  1741.       
  1742.       
  1743.      Exposure on Multi-user Systems
  1744.      ------------------------------
  1745.       
  1746.      PGP was originally designed for a single-user MSDOS machine under
  1747.      your direct physical control.  I run PGP at home on my own PC, and
  1748.      unless someone breaks into my house or monitors my electromagnetic
  1749.      emissions, they probably can't see my plaintext files or secret keys. 
  1750.       
  1751.      But now PGP also runs on multi-user systems such as Unix and VAX/VMS.
  1752.      On multi-user systems, there are much greater risks of your plaintext
  1753.      or keys or passwords being exposed.  The Unix system administrator or
  1754.      a clever intruder can read your plaintext files, or perhaps even use
  1755.      special software to covertly monitor your keystrokes or read what's
  1756.      on your screen.  On a Unix system, any other user can read your
  1757.      environment information remotely by simply using the Unix "ps"
  1758.      command.  Similar problems exist for MSDOS machines connected on a
  1759.  
  1760.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 32
  1761.  
  1762.  
  1763.      local area network.  The actual security risk is dependent on your
  1764.      particular situation.  Some multi-user systems may be safe because
  1765.      all the users are trusted, or because they have system security
  1766.      measures that are safe enough to withstand the attacks available to
  1767.      the intruders, or because there just aren't any sufficiently
  1768.      interested intruders.  Some Unix systems are safe because they are
  1769.      only used by one user-- there are even some notebook computers
  1770.      running Unix.  It would be unreasonable to simply exclude PGP from
  1771.      running on all Unix systems.
  1772.       
  1773.      PGP is not designed to protect your data while it is in plaintext
  1774.      form on a compromised system.  Nor can it prevent an intruder from
  1775.      using sophisticated measures to read your secret key while it is
  1776.      being used.  You will just have to recognize these risks on
  1777.      multi-user systems, and adjust your expectations and behavior
  1778.      accordingly.  Perhaps your situation is such that you should consider
  1779.      only running PGP on an isolated single-user system under your direct
  1780.      physical control.  That's what I do, and that's what I recommend.
  1781.       
  1782.       
  1783.      Traffic Analysis
  1784.      ----------------
  1785.       
  1786.      Even if the attacker cannot read the contents of your encrypted
  1787.      messages, he may be able to infer at least some useful information by
  1788.      observing where the messages come from and where they are going, the
  1789.      size of the messages, and the time of day the messages are sent. 
  1790.      This is analogous to the attacker looking at your long distance phone
  1791.      bill to see who you called and when and for how long, even though the
  1792.      actual content of your calls is unknown to the attacker.  This is
  1793.      called traffic analysis.  PGP alone does not protect against traffic
  1794.      analysis.  Solving this problem would require specialized 
  1795.      communication protocols designed to reduce exposure to traffic
  1796.      analysis in your communication environment, possibly with some
  1797.      cryptographic assistance.
  1798.       
  1799.       
  1800.      Cryptanalysis
  1801.      -------------
  1802.       
  1803.      An expensive and formidable cryptanalytic attack could possibly be
  1804.      mounted by someone with vast supercomputer resources, such as a
  1805.      Government intelligence agency.  They might crack your RSA key by
  1806.      using some new secret factoring breakthrough.  Perhaps so, but it is
  1807.      noteworthy that the US Government trusts the RSA algorithm enough in
  1808.      some cases to use it to protect its own nuclear weapons, according to
  1809.      Ron Rivest.  And civilian academia has been intensively attacking it
  1810.      without success since 1978. 
  1811.       
  1812.      Perhaps the Government has some classified methods of cracking the
  1813.      IDEA(tm) conventional encryption algorithm used in PGP.  This is
  1814.      every cryptographer's worst nightmare.  There can be no absolute
  1815.      security guarantees in practical cryptographic implementations.  
  1816.       
  1817.      Still, some optimism seems justified.  The IDEA algorithm's designers
  1818.      are among the best cryptographers in Europe.  It has had extensive
  1819.  
  1820.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 33
  1821.  
  1822.  
  1823.      security analysis and peer review from some of the best cryptanalysts
  1824.      in the unclassified world.  It appears to have some design advantages
  1825.      over the DES in withstanding differential cryptanalysis, which has
  1826.      been used to crack the DES.  
  1827.       
  1828.      Besides, even if this algorithm has some subtle unknown weaknesses,
  1829.      PGP compresses the plaintext before encryption, which should greatly
  1830.      reduce those weaknesses.  The computational workload to crack it is
  1831.      likely to be much more expensive than the value of the message.
  1832.       
  1833.      If your situation justifies worrying about very formidable attacks of
  1834.      this caliber, then perhaps you should contact a data security
  1835.      consultant for some customized data security approaches tailored to
  1836.      your special needs.  Boulder Software Engineering, whose address and
  1837.      phone are given at the end of this document, can provide such
  1838.      services.
  1839.       
  1840.       
  1841.      In summary, without good cryptographic protection of your data
  1842.      communications, it may have been practically effortless and perhaps
  1843.      even routine for an opponent to intercept your messages, especially
  1844.      those sent through a modem or E-mail system.  If you use PGP and
  1845.      follow reasonable precautions, the attacker will have to expend far
  1846.      more effort and expense to violate your privacy. 
  1847.       
  1848.      If you protect yourself against the simplest attacks, and you feel
  1849.      confident that your privacy is not going to be violated by a
  1850.      determined and highly resourceful attacker, then you'll probably be
  1851.      safe using PGP.  PGP gives you Pretty Good Privacy.
  1852.       
  1853.       
  1854.  
  1855.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 34
  1856.  
  1857.  
  1858.       
  1859.      Legal Issues
  1860.      ============
  1861.       
  1862.       
  1863.      Trademarks, Copyrights, and Warranties
  1864.      --------------------------------------
  1865.       
  1866.      "Pretty Good Privacy", "Phil's Pretty Good Software", and the "Pretty
  1867.      Good" label for computer software and hardware products are all
  1868.      trademarks of Philip Zimmermann and Phil's Pretty Good Software.  PGP
  1869.      is (c) Copyright Philip R. Zimmermann, 1990-1993.  Philip Zimmermann
  1870.      also holds the copyright for the PGP User's Manual, as well as any
  1871.      foreign language translations of the manual or the software.
  1872.       
  1873.      The author assumes no liability for damages resulting from the use of
  1874.      this software, even if the damage results from defects in this
  1875.      software, and makes no representations concerning the merchantability
  1876.      of this software or its suitability for any specific purpose.  It is
  1877.      provided "as is" without express or implied warranty of any kind.
  1878.       
  1879.       
  1880.      Patent Rights on the Algorithms
  1881.      -------------------------------
  1882.       
  1883.      When I first released PGP, I half-expected to encounter some form of
  1884.      legal harassment from the Government.  Indeed, there has been legal 
  1885.      harrassment, but it hasn't come from the Government-- it has come
  1886.      from a private corporation.
  1887.       
  1888.      The RSA public key cryptosystem was developed at MIT with Federal
  1889.      funding from grants from the National Science Foundation and the
  1890.      Navy.  It is patented by MIT (U.S. patent #4,405,829, issued 20 Sep
  1891.      1983).  A company in California called Public Key Partners (PKP) holds
  1892.      the exclusive commercial license to sell and sub-license the RSA
  1893.      public key cryptosystem.  The author of this software implementation
  1894.      of the RSA algorithm is providing this implementation for educational
  1895.      use only.  Licensing this algorithm from PKP is the responsibility of
  1896.      you, the user, not Philip Zimmermann, the author of this software
  1897.      implementation.  The author assumes no liability for any patent
  1898.      infringement that may result from the unlicensed use by the user of
  1899.      the underlying RSA algorithm used in this software.  Foreign users
  1900.      should note that the RSA patent does not apply outside the US, and
  1901.      there is no RSA patent in any other country.  Federal agencies may
  1902.      use it because the Government paid for the development of RSA.  
  1903.       
  1904.      Unfortunately, PKP is not offering any licensing of their RSA patent
  1905.      to end users of PGP.  This essentially makes PGP contraband in the
  1906.      USA.  Jim Bidzos, president of PKP, threatened to take legal action
  1907.      against me unless I stop distributing PGP, until they can devise a
  1908.      licensing scheme for it.  I agreed to this, since PGP is already in
  1909.      wide circulation and waiting a while for a licensing arrangement from
  1910.      PKP seemed reasonable.  Mr. Bidzos assured me (he even used the word
  1911.      "promise") several times since the initial 5 June 91 release of PGP
  1912.      that they were working on a licensing scheme for PGP.  Apparently, my
  1913.      release of PGP helped provide the impetus for them to offer some sort
  1914.  
  1915.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 35
  1916.  
  1917.  
  1918.      of a freeware-style license for noncommercial use of the RSA
  1919.      algorithm.  However, in December 1991 Mr. Bidzos said he had no plans
  1920.      to ever license the RSA algorithm to PGP users, and denied ever
  1921.      implying that he would.  Meanwhile, I have continued to refrain from
  1922.      distributing PGP, although I continue to update the PGP User's Guide,
  1923.      and have provided the design guidance for new revisions of PGP. 
  1924.      Ironically, all this legal controversy from PKP has imparted a
  1925.      forbidden flavor to PGP that has only served to amplify its universal
  1926.      popularity. 
  1927.       
  1928.      I wrote my PGP software from scratch, with my own implementation of
  1929.      the RSA algorithm.  I didn't steal any software from PKP.  Before
  1930.      publishing PGP, I got a formal written legal opinion from a patent
  1931.      attorney with extensive experience in software patents.  I'm
  1932.      convinced that publishing PGP the way I did does not violate patent
  1933.      law.  However, it is a well known axiom in the US legal system that
  1934.      regardless of the law, he with the most money and lawyers prevails, 
  1935.      if not by actually winning then by crushing the little guy with legal
  1936.      expenses.  
  1937.       
  1938.      Not only did PKP acquire the exclusive patent rights for the RSA
  1939.      cryptosystem, which was developed with your tax dollars, but they 
  1940.      also somehow acquired the exclusive rights to three other patents
  1941.      covering rival public key schemes invented by others, also developed
  1942.      with your tax dollars.  This essentially gives one company a legal
  1943.      lock in the USA on nearly all practical public key cryptosystems. 
  1944.      They even appear to be claiming patent rights on the very concept of
  1945.      public key cryptography, regardless of what clever new original
  1946.      algorithms are independently invented by others.  And you thought
  1947.      patent law was designed to encourage innovation!  PKP does not
  1948.      actually develop any software-- they don't even have an engineering
  1949.      department-- they are essentially a litigation company.  
  1950.       
  1951.      Public key cryptography is destined to become a crucial technology in
  1952.      the protection of our civil liberties and privacy in our increasingly
  1953.      connected society.  Why should the Government try to limit access to 
  1954.      this key technology, when a single monopoly can do it for them?  
  1955.       
  1956.      It appears certain that there will be future releases of PGP,
  1957.      regardless of the outcome of licensing problems with Public Key
  1958.      Partners.  If PKP does not license PGP, then future releases of PGP
  1959.      might not come from me.  There are countless fans of PGP outside the
  1960.      US, and many of them are software engineers who want to improve PGP
  1961.      and promote it, regardless of what I do.  The second release of PGP
  1962.      was a joint effort of an international team of software engineers,
  1963.      implementing enhancements to the original PGP with design guidance
  1964.      from me.  It was released by Branko Lankester in The Netherlands and
  1965.      Peter Gutmann in New Zealand, out of reach of US patent law. 
  1966.      Although released only in Europe and New Zealand, it spontaneously
  1967.      spread to the USA without help from me or the PGP development team.
  1968.       
  1969.      The IDEA(tm) conventional block cipher used by PGP is covered by a
  1970.      patent in Europe, held by ETH and a Swiss company called Ascom-Tech
  1971.      AG.  The patent number is PCT/CH91/00117.  International patents are
  1972.      pending.  IDEA(tm) is a trademark of Ascom-Tech AG.  There is no
  1973.      license fee required for noncommercial use of IDEA.  Ascom Tech AG
  1974.  
  1975.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 36
  1976.  
  1977.  
  1978.      has granted permission for PGP to use the IDEA cipher, and places no
  1979.      restrictions on using PGP for any purpose, including commercial use. 
  1980.      You may not extract the IDEA cipher from PGP and put it in another
  1981.      commercial product without a license.  Commercial users of IDEA may
  1982.      obtain licensing details from Dieter Profos, Ascom Tech AG, Solothurn
  1983.      Lab, Postfach 151, 4502 Solothurn, Switzerland, Tel +41 65 242885,
  1984.      Fax +41 65 235761.   
  1985.       
  1986.      The ZIP compression routines in PGP come from freeware source code,
  1987.      with the author's permission.  I'm not aware of any patents on the
  1988.      ZIP algorithm, but you're welcome to check into that question
  1989.      yourself.  If there are any obscure patent claims that apply to ZIP,
  1990.      then sorry, you'll have to take care of the patent licensing, not me.
  1991.       
  1992.      All this patent stuff reminds me of a Peanuts cartoon I saw in the
  1993.      newspaper where Lucy showed Charlie Brown a fallen autumn leaf and
  1994.      said "This is the first leaf to fall this year."  Charlie Brown said,
  1995.      "How do you know that?  Leaves have been falling for weeks."  Lucy
  1996.      replied, "I had this one notarized."
  1997.       
  1998.       
  1999.      Licensing and Distribution
  2000.      --------------------------
  2001.       
  2002.      In the USA PKP controls, through US patent law, the licensing of the
  2003.      RSA algorithm.  But I have no objection to anyone freely using or
  2004.      distributing my PGP software, without payment of fees to me.  You must
  2005.      keep the copyright notices on PGP and keep this documentation with
  2006.      it.  However, if you live in the USA, this may not satisfy any legal
  2007.      obligations you may have to PKP for using the RSA algorithm as
  2008.      mentioned above.  
  2009.       
  2010.      In fact, if you live in the USA, and you are not a Federal agency, 
  2011.      you shouldn't actually run PGP on your computer, because Public Key
  2012.      Partners wants to forbid you from running my software.  PGP is
  2013.      contraband.  
  2014.       
  2015.      Of course, I can't give any assurances, but my guess is that it seems
  2016.      unlikely that PKP would waste their time pursuing PGP end users for
  2017.      patent infringement.  There are just too many PGP users to go after. 
  2018.      And why would they single you out?  But I certainly wouldn't want to
  2019.      imply that you do anything improper-- if PKP were offering licenses,
  2020.      I would urge you to obtain one.  But since they aren't, well, I guess
  2021.      you should just refrain from using PGP if you live in the USA.  
  2022.       
  2023.      PGP is not shareware, it's freeware.  Forbidden freeware.  Published
  2024.      as a community service.  If I sold PGP for money, then I would get
  2025.      sued by PKP for using their RSA algorithm.  More importantly, giving
  2026.      PGP away for free will encourage far more people to use it, which
  2027.      hopefully will have a greater social impact.  This could lead to
  2028.      widespread awareness and use of the RSA public key cryptosystem,
  2029.      which will probably make more money for PKP in the long run.  If only
  2030.      they could see that.  
  2031.       
  2032.      All the source code for PGP is available for free under the "Copyleft" 
  2033.      General Public License from the Free Software Foundation (FSF).  A
  2034.  
  2035.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 37
  2036.  
  2037.  
  2038.      copy of the FSF General Public License is included in the source
  2039.      release package of PGP.
  2040.       
  2041.      Regardless of and perhaps contrary to some provisions of the FSF
  2042.      General Public License, the following terms apply:
  2043.       
  2044.      1)  Written discussions of PGP in magazines or books may include
  2045.          fragments of PGP source code and documentation, without 
  2046.          restrictions.
  2047.       
  2048.      2)  Although the FSF General Public License allows non-proprietary
  2049.          derivative products, it prohibits proprietary derivative products. 
  2050.          Despite this, I may grant you a special license if you want to 
  2051.          derive a proprietary commercial product from some of PGP's parts.  
  2052.          There may or may not be a fee depending on what kind of a deal you 
  2053.          plan to pursue with PKP.  Retaining my copyright notice and 
  2054.          attribution might suffice in some cases.  Give me a call and we'll 
  2055.          discuss it.  I'm real easy to please.
  2056.       
  2057.      Feel free to disseminate the complete PGP release package as widely
  2058.      as possible.  Give it to all your friends.  If you have access to any
  2059.      electronic Bulletin Boards Systems, please upload the complete PGP
  2060.      executable object release package to as many BBS's as possible.  You
  2061.      may disseminate the PGP source release package too, if you've got
  2062.      it.  The PGP version 2.2 executable object release package for MSDOS
  2063.      contains the PGP executable software, documentation, sample key rings
  2064.      including my own public key, and signatures for the software and this
  2065.      manual, all in one PKZIP compressed file called PGP22.ZIP.  The PGP
  2066.      source release package for MSDOS contains all the C source files in
  2067.      one PKZIP compressed file called PGP22SRC.ZIP.
  2068.       
  2069.      You may obtain free copies or updates to PGP from thousands of BBS's
  2070.      worldwide or from other public sources such as Internet FTP sites. 
  2071.      Don't ask me for a copy directly from me, since I'd rather avoid
  2072.      further legal problems with PKP at this time.  I might be able to
  2073.      tell you where you can get it, however.  
  2074.       
  2075.      After all this work I have to admit I wouldn't mind getting some fan
  2076.      mail for PGP, to gauge its popularity.  Let me know what you think
  2077.      about it and how many of your friends use it.  Bug reports and
  2078.      suggestions for enhancing PGP are welcome, too.  Perhaps a future PGP
  2079.      release will reflect your suggestions.  
  2080.       
  2081.      This project has not been funded and the project has nearly eaten me
  2082.      alive.  This means you can't count on a reply to your mail, unless
  2083.      you only need a short written reply and you include a stamped
  2084.      self-addressed envelope.  But I do reply to E-mail.  Please keep it in
  2085.      English, as my foreign language skills are weak.  If you call and I'm
  2086.      not in, it's best to just try again later.  I usually don't return
  2087.      long distance phone calls, unless you leave a message that I can call
  2088.      you collect.  If you need any significant amount of my time, I am
  2089.      available on a paid consulting basis, and I do return those calls.
  2090.       
  2091.      The most inconvenient mail I get is for some well-intentioned person
  2092.      to send me a few dollars asking me for a copy of PGP.  I can't send
  2093.      it to them because of the legal threats from PKP (or worse--
  2094.  
  2095.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 38
  2096.  
  2097.  
  2098.      sometimes these requests are from foreign countries, and I would be
  2099.      risking violating cryptographic export control laws).  Even if there
  2100.      were no legal hassles involved in sending PGP to them, they usually
  2101.      don't send enough money to make it worth my time ($50 might be worth
  2102.      my time if I were actually selling this stuff).  I'm just not set up
  2103.      as a low cost low volume mail order business.  I can't just ignore
  2104.      the request and keep the money, because they probably regard the
  2105.      money as a fee for me to fulfill their request.  If I return the
  2106.      money, I might have to get in my car and drive down to the post
  2107.      office and buy some postage stamps, because these requests rarely
  2108.      include a stamped self-addressed envelope.  And I have to take the
  2109.      time to write a polite reply that I can't do it.  If I postpone the
  2110.      reply and set the letter down on my desk, it might be buried within
  2111.      minutes and won't see the light of day again for months.  Multiply
  2112.      these minor inconveniences by the number of requests I get, and you
  2113.      can see the problem.  Isn't it enough that the software is free?  It
  2114.      would be nicer if people could try to get PGP from any of the myriad
  2115.      other sources.  If you don't have a modem, ask a friend to get it for
  2116.      you.  If you can't find it yourself, I don't mind answering a quick
  2117.      phone call. 
  2118.       
  2119.      If anyone wants to volunteer to improve PGP, please let me know.  It
  2120.      could certainly use some more work.  Some features were deferred to
  2121.      get it out the door.  A number of PGP users have since donated their
  2122.      time to port PGP to Unix on Sun SPARCstations, to Ultrix, to VAX/VMS,
  2123.      to OS/2, to the Amiga, and to the Atari ST.  Perhaps you can help
  2124.      port it to some new environments.  But please let me know if you plan
  2125.      to port or add enhancements to PGP, to avoid duplication of effort,
  2126.      and to avoid starting with an obsolete version of the source code.  
  2127.       
  2128.      Because so many foreign language translations of PGP have been
  2129.      produced, most of them are not distributed with the regular PGP
  2130.      release package because it would require too much disk space. 
  2131.      Separate language translation "kits" are available from a number of
  2132.      independent sources, and are sometimes available separately from the
  2133.      same distribution centers that carry the regular PGP release
  2134.      software.  These kits include translated versions of the file 
  2135.      LANGUAGE.TXT, PGP.HLP, and the PGP User's Guide.  If you want to
  2136.      produce a translation for your own native language, contact me first
  2137.      to get the latest information and standard guidelines, and to find
  2138.      out if it's been translated to your language already.  Colin Plumb
  2139.      (colin@nyx.cs.du.edu) maintains a comprehensive collection of foreign
  2140.      language kits from other translators. 
  2141.       
  2142.      Future versions of PGP may have to change the data formats for
  2143.      messages, signatures, keys and key rings, in order to provide
  2144.      important new features.  This may cause backward compatibility
  2145.      problems with this version of PGP.  Future releases may provide
  2146.      conversion utilities to convert old keys, but you may have to dispose
  2147.      of old messages created with the old PGP.
  2148.       
  2149.      If you have access to the Internet, watch for announcements of new
  2150.      releases of PGP on the Internet newsgroups "sci.crypt" and PGP's own
  2151.      newsgroup, "alt.security.pgp".  There is also an interest group
  2152.      mailing list called info-pgp, which is intended for users without
  2153.      access to the "alt.security.pgp" newsgroup.  Info-pgp is moderated by
  2154.  
  2155.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 39
  2156.  
  2157.  
  2158.      Hugh Miller, and you may subscribe to it by writing him a letter at 
  2159.      info-pgp-request@lucpul.it.luc.edu.  Include your name and Internet
  2160.      address.  If you want to know where to get PGP, Hugh can send you a
  2161.      list of Internet FTP sites and BBS phone numbers.  Hugh may also be
  2162.      reached at hmiller@lucpul.it.luc.edu. 
  2163.       
  2164.       
  2165.       
  2166.      Export Controls
  2167.      ---------------
  2168.       
  2169.      The Government has made it illegal in many cases to export good
  2170.      cryptographic technology, and that may include PGP.  They regard this
  2171.      kind of software as munitions.  This is determined by volatile State
  2172.      Department policies, not fixed laws.  I will not export this software
  2173.      out of the US or Canada in cases when it is illegal to do so under US
  2174.      State Department policies, and I assume no responsibility for other
  2175.      people exporting it on their own.
  2176.       
  2177.      If you live outside the US or Canada, I advise you not to violate US
  2178.      State Department policies by getting PGP from a US source.  Since
  2179.      thousands of domestic users got it after its initial publication, it
  2180.      somehow leaked out of the US and spread itself widely abroad, like
  2181.      dandelion seeds blowing in the wind.  If PGP has already found its
  2182.      way into your country, then I don't think you're violating US export
  2183.      law if you pick it up from a source outside of the US.  
  2184.       
  2185.      It seems to some legal observers I've talked with, that the framers of
  2186.      the US export controls never envisioned that they would ever apply to
  2187.      cryptographic freeware that has been published and scattered to the
  2188.      winds.  It's hard to imagine a US attorney trying to build a real
  2189.      case against someone for the "export" of software published freely in
  2190.      the US.  As far as anyone I've talked to knows, it's never been done,
  2191.      despite numerous examples of export violations.  I'm not a lawyer and
  2192.      I'm not giving you legal advice-- I'm just trying to point out what
  2193.      seems like common sense.
  2194.       
  2195.      Starting with PGP version 2.0, the release point of the software has
  2196.      been outside the US, on publicly-accessible computers in Europe.
  2197.      Each release is electronically sent back into the US and posted on
  2198.      publicly-accessible computers in the US by PGP privacy activists in
  2199.      foreign countries.  There are some restrictions in the US regarding
  2200.      the import of munitions, but I'm not aware of any cases where this
  2201.      was ever enforced for importing cryptographic software into the US. 
  2202.      I imagine that a legal action of that type would be quite a spectacle
  2203.      of controversy.
  2204.       
  2205.      Some foreign governments impose serious penalties on anyone inside
  2206.      their country for merely using encrypted communications.  In some
  2207.      countries they might even shoot you for that.  But if you live in
  2208.      that kind of country, perhaps you need PGP even more.
  2209.       
  2210.       
  2211.       
  2212.      Computer-Related Political Groups
  2213.      =================================
  2214.  
  2215.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 40
  2216.  
  2217.  
  2218.       
  2219.      PGP is a very political piece of software.  It seems appropriate to
  2220.      mention here some computer-related activist groups.  Full details on
  2221.      these groups, and how to join them, is provided in a separate
  2222.      document file in the PGP release package.
  2223.       
  2224.      The Electronic Frontier Foundation (EFF) was founded in July, 1990,
  2225.      to assure freedom of expression in digital media, with a particular
  2226.      emphasis on applying the principles embodied in the Constitution and
  2227.      the Bill of Rights to computer-based communication.  They can be
  2228.      reached at:  Electronic Frontier Foundation, 238 Main Street, 
  2229.      Cambridge, MA 02142, USA.
  2230.       
  2231.      The League for Programming Freedom (LPF) is a grass-roots organization
  2232.      of professors, students, businessmen, programmers and users dedicated
  2233.      to bringing back the freedom to write programs.  They regard patents
  2234.      on computer algorithms as harmful to the US software industry.  They
  2235.      can be reached at (617) 433-7071, or send Internet mail to
  2236.      lpf@uunet.uu.net
  2237.       
  2238.      Computer Professionals For Social Responsibility (CPSR) empowers
  2239.      computer professionals and computer users to advocate for the
  2240.      responsible use of information technology and empowers all who use
  2241.      computer technology to participate in public policy debates on the
  2242.      impacts of computers on society.  They can be reached at:
  2243.      415-322-3778 in Palo Alto, E-mail address cpsr@csli.stanford.edu.
  2244.       
  2245.      For more details on these groups, see the accompanying document in
  2246.      the PGP release package.
  2247.       
  2248.       
  2249.  
  2250.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 41
  2251.  
  2252.  
  2253.       
  2254.      Recommended Introductory Readings
  2255.      =================================
  2256.       
  2257.      1)  Dorothy Denning, "Cryptography and Data Security", Addison-Wesley,
  2258.          Reading, MA 1982
  2259.      2)  Dorothy Denning, "Protecting Public Keys and Signature Keys",
  2260.          IEEE Computer, Feb 1983
  2261.      3)  Martin E. Hellman, "The Mathematics of Public-Key Cryptography," 
  2262.          Scientific American, Aug 1979
  2263.       
  2264.      Other Readings
  2265.      ==============
  2266.       
  2267.      4)  Ronald Rivest, "The MD5 Message Digest Algorithm", MIT Laboratory
  2268.          for Computer Science, 1991
  2269.      5)  Xuejia Lai, "On the Design and Security of Block Ciphers", 
  2270.          Institute for Signal and Information Processing, ETH-Zentrum, 
  2271.          Zurich, Switzerland, 1992
  2272.      6)  Xuejia Lai, James L. Massey, Sean Murphy, "Markov Ciphers and 
  2273.          Differential Cryptanalysis", Advances in Cryptology- EUROCRYPT'91
  2274.      7)  Philip Zimmermann, "A Proposed Standard Format for RSA 
  2275.          Cryptosystems", Advances in Computer Security, Vol III, edited by
  2276.          Rein Turn, Artech House, 1988
  2277.      8)  Paul Wallich, "Electronic Envelopes", Scientific American, Feb
  2278.          1993, pages 30-32.  (This is an article on PGP)
  2279.       
  2280.       
  2281.      To Contact the Author
  2282.      =====================
  2283.       
  2284.      Philip Zimmermann may be reached at:
  2285.       
  2286.      Boulder Software Engineering
  2287.      3021 Eleventh Street
  2288.      Boulder, Colorado 80304  USA
  2289.      Phone 303-541-0140 (voice or FAX)  (10:00am - 7:00pm Mountain Time)
  2290.      Internet:  prz@sage.cgd.ucar.edu
  2291.       
  2292.       
  2293.       
  2294.  
  2295.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 42
  2296.  
  2297.  
  2298.       
  2299.      Appendix A:  Where to Get PGP
  2300.      =============================
  2301.       
  2302.      The following describes how to get the freeware public key
  2303.      cryptographic software PGP (Pretty Good Privacy) from an anonymous
  2304.      FTP site on Internet, or from other sources.  
  2305.       
  2306.      PGP has sophisticated key management, an RSA/conventional hybrid 
  2307.      encryption scheme, message digests for digital signatures, data
  2308.      compression before encryption, and good ergonomic design.  PGP is
  2309.      well featured and fast, and has excellent user documentation.  Source
  2310.      code is free.
  2311.       
  2312.      PGP uses the RSA cryptosystem which is claimed by a US patent held by
  2313.      a company called Public Key Partners.  PGP users outside the US take
  2314.      note that there is no RSA patent outside the US.  Also, bear in mind
  2315.      that there are US and Canadian export laws prohibiting anyone inside
  2316.      the US and Canada from exporting cryptographic software like this. 
  2317.      If you live outside the US, you're probably not violating US export
  2318.      law if you pick it up from a source outside of the US.
  2319.       
  2320.      What follows is a small sample of places that allegedly have PGP, as
  2321.      of 2 March 1993.  This information is not guaranteed to be correct.
  2322.      Some US sites have occasionally withdrawn PGP because of fear of
  2323.      legal intimidation from the RSA patent holders.
  2324.       
  2325.      There are two compressed archive files in the PGP 2.2 MSDOS release. 
  2326.      You must get pgp22.zip which contains the MSDOS binary executable and
  2327.      the PGP User's Guide, and you can optionally get pgp22src.zip which
  2328.      contains the source files.  These files can be decompressed with the
  2329.      MSDOS shareware archive decompression utility PKUNZIP.EXE, version
  2330.      1.1 or later.  For Unix users who lack an implementation of UNZIP,
  2331.      the source code can also be found in the compressed tar file
  2332.      pgp22src.tar.Z.
  2333.       
  2334.      A reminder:  Set mode to binary or image when doing an FTP transfer.
  2335.      And when doing a kermit download to your PC, specify 8-bit binary
  2336.      mode at both ends.  Here are some Internet sites that have PGP via
  2337.      anonymous FTP:
  2338.          
  2339.      Finland:    nic.funet.fi  (128.214.6.100)
  2340.                  Directory: /pub/unix/security/crypt/
  2341.       
  2342.      Italy:      ghost.dsi.unimi.it  (149.132.2.1)
  2343.                  Directory: /pub/security/
  2344.       
  2345.      UK:         src.doc.ic.ac.uk
  2346.                  Directory: /computing/security/software/PGP
  2347.       
  2348.      For those lacking FTP connectivity to the net, nic.funet.fi also
  2349.      offers the files via email.  Send the following mail message to
  2350.      mailserv@nic.funet.fi:
  2351.       
  2352.          ENCODER uuencode
  2353.          SEND pub/unix/security/crypt/pgp22src.zip
  2354.  
  2355.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 43
  2356.  
  2357.  
  2358.          SEND pub/unix/security/crypt/pgp22.zip
  2359.       
  2360.      This will deposit the two zipfiles, as (about) 15 batched messages in
  2361.      your mailbox within about 24 hours.  Save and uudecode.
  2362.       
  2363.      In the US, PGP may be found on God knows how many BBS systems, far
  2364.      too many to list here.  Still, if you don't have any local BBS phone
  2365.      numbers handy, here are some BBS's you might try.
  2366.       
  2367.      The GRAPEVINE BBS in Little Rock Arkansas has set up a special
  2368.      account for people to download PGP for free.  The SYSOP is Jim Wenzel,
  2369.      at jim.wenzel@grapevine.lrk.ar.us.  The following phone numbers are
  2370.      applicable and should be dialed in the order presented (i.e., the
  2371.      first one is the highest speed line):  (501) 753-6859, (501)
  2372.      753-8121, (501) 791-0124.  When asked to login use the following
  2373.      information:
  2374.       
  2375.          name: PGP USER        ('PGP' is 1st name, 'USER' is 2nd name)
  2376.          password: PGP
  2377.       
  2378.      The Northern Lights BBS in Troy, NY, has PGP for free download.  It
  2379.      is run by Daniel Ray.  Call (518) 237-2163 at 300-2400 bps 8N1.  Then
  2380.      login directly to the pgp account as follows:
  2381.       
  2382.          tnllogin: pgp
  2383.          Password: key
  2384.       
  2385.      In Colorado, try this single-line BBS:  303 443-8292.  It is often
  2386.      busy, so keep trying.  Log in with your own name.
  2387.       
  2388.      PGP is also widely available on Fidonet, a large informal network of
  2389.      PC-based bulletin board systems interconnected via modems.  Check
  2390.      your local bulletin board systems.  It is available on many foreign
  2391.      and domestic Fidonet BBS sites.
  2392.       
  2393.      In New Zealand, try this (supposedly free) dial-up BBS system:
  2394.         Kappa Crucis:  +64 9 817-3714, -3725, -3324, -8424, -3094, -3393
  2395.       
  2396.      For information on PGP implementations on the Apple Macintosh,
  2397.      Commodore Amiga, or Atari ST, or any other questions about where to
  2398.      get PGP for any other platform, contact Hugh Miller at
  2399.      hmiller@lucpul.it.luc.edu.
  2400.       
  2401.      Here are a few people and their email addresses or phone numbers you
  2402.      can contact in some countries to get information on local PGP 
  2403.      availability:
  2404.       
  2405.      Peter Gutmann                 Hugh Kennedy
  2406.      pgut1@cs.aukuni.ac.nz         70042.710@compuserve.com
  2407.      New Zealand                   Germany
  2408.       
  2409.      Branko Lankester              Miguel Angel Gallardo
  2410.      lankeste@fwi.uva.nl           gallardo@batman.fi.upm.es
  2411.      +31 2159 42242                (341) 474 38 09
  2412.      The Netherlands               Spain
  2413.       
  2414.  
  2415.      PGPDOC2.TXT            Saturday, March  6, 1993 11:39 am            Page 44
  2416.  
  2417.  
  2418.      Hugh Miller                   Colin Plumb
  2419.      hmiller@lucpul.it.luc.edu     colin@nyx.cs.du.edu
  2420.      (312) 508-2727                Toronto, Ontario, Canada
  2421.      USA
  2422.       
  2423.      Jean-loup Gailly
  2424.      jloup@chorus.fr
  2425.      France
  2426.       
  2427.  
  2428.