How do I make a form that sends me encrypted email?

Overview: The Netmar mail script can employ the PGP encryption package to encrypt email for safe transit over the Internet. Only you or the person you designate will be able to decrypt the email message.

Before Beginning
If you're reading a printed or saved version of this document, connect to the Internet and verify your connection by pulling up our homepage at
Follow these steps
  1. Login to your Netmar account through telnet (see Question 1.9)
  2. At the netmar> prompt, type: pgp -kg and press ENTER.
  3. Select a key size (larger key sizes are safer but slower).
  4. Select a User ID (this is the ID under which the key will be saved). The User ID can be any collection of words or names, but should generally be just a name or name and email address. Just make sure to write down whatever you enter here. Note: This is NOT the same thing as your Netmar username. This is a PGP User ID that you will make up now, and use later.
  5. Enter a passphrase (secret phrase) to protect your secret key. This DOES NOT need to be JUST ONE WORD. It CAN BE multiple words or even a whole sentence. Using a whole sentence will make it harder for someone else to guess without necessarily making it harder for you to remember it.
  6. Press random keys on the keyboard when prompted until your key is completed.
  7. Setup your HTML form. (see Question 1.15)
  8. Include a PGP line in the form similar to the following:
    <input type="hidden" name="pgp" value="johndoe; John Doe">
    Replace johndoe in the above line with your Netmar username. Replace John Doe with the User ID you selected in Step 4. Be sure to type it EXACTLY as you entered it in Step 4.
  9. If you are sending email to be received by some mail software (e.g. Netscape, Eudora, Pegasus) on your computer, you will need to download and install PGP on your computer. Download PGP for here. The PGP keyring you have created is located in the .pgp directory in your home directory.