1Here's a quick summary of PGP 2.6.3(i) commands: 2================================================ 3 4To encrypt a plaintext file with the recipient's public key: 5 pgp -e textfile her_userid 6 7To sign a plaintext file with your secret key: 8 pgp -s textfile [-u your_userid] 9 10To sign a plaintext file with your secret key and have the output 11readable to people without running PGP first: 12 pgp -sta textfile [-u your_userid] 13 14To sign a plaintext file with your secret key, and then encrypt it 15with the recipient's public key: 16 pgp -es textfile her_userid [-u your_userid] 17 18To encrypt a plaintext file with just conventional cryptography, type: 19 pgp -c textfile 20 21To decrypt an encrypted file, or to check the signature integrity of a 22signed file: 23 pgp ciphertextfile [-o plaintextfile] 24 25To encrypt a message for any number of multiple recipients: 26 pgp -e textfile userid1 userid2 userid3 27 28 29Key management commands: 30------------------------ 31 32To generate your own unique public/secret key pair: 33 pgp -kg 34 35To add a public or secret key file's contents to your public or 36secret key ring: 37 pgp -ka keyfile [keyring] 38 39To extract (copy) a key from your public or secret key ring: 40 pgp -kx userid keyfile [keyring] 41or: pgp -kxa userid keyfile [keyring] 42 43To view the contents of your public key ring: 44 pgp -kv[v] [userid] [keyring] 45 46To view the "fingerprint" of a public key, to help verify it over 47the telephone with its owner: 48 pgp -kvc [userid] [keyring] 49 50To view the contents and check the certifying signatures of your 51public key ring: 52 pgp -kc [userid] [keyring] 53 54To edit the userid or pass phrase for your secret key: 55 pgp -ke userid [keyring] 56 57To edit the trust parameters for a public key: 58 pgp -ke userid [keyring] 59 60To remove a key or just a userid from your public key ring: 61 pgp -kr userid [keyring] 62 63To sign and certify someone else's public key on your public key ring: 64 pgp -ks her_userid [-u your_userid] [keyring] 65 66To remove selected signatures from a userid on a keyring: 67 pgp -krs userid [keyring] 68 69To permanently revoke your own key, issuing a key compromise certificate: 70 pgp -kd your_userid 71 72To disable or reenable a public key on your own public key ring: 73 pgp -kd userid 74 75To permanently revoke your own certificate from someone else's public key: 76 pgp -kds userid [-u your_userid] [keyring] 77 78 79Esoteric commands: 80------------------ 81 82To decrypt a message and leave the signature on it intact: 83 pgp -d ciphertextfile 84 85To create a signature certificate that is detached from the document: 86 pgp -sb textfile [-u your_userid] 87 88To detach a signature certificate from a signed message: 89 pgp -b ciphertextfile 90 91 92Command options that can be used in combination with other 93command options (sometimes even spelling interesting words!): 94------------------------------------------------------------- 95 96To produce a ciphertext file in ASCII radix-64 format, just add the 97-a option when encrypting or signing a message or extracting a key: 98 pgp -sea textfile her_userid 99or: pgp -kxa userid keyfile [keyring] 100 101To wipe out the plaintext file after producing the ciphertext file, 102just add the -w (wipe) option when encrypting or signing a message: 103 pgp -sew message.txt her_userid 104 105To specify that a plaintext file contains ASCII text, not binary, and 106should be converted to recipient's local text line conventions, add 107the -t (text) option to other options: 108 pgp -seat message.txt her_userid 109 110To view the decrypted plaintext output on your screen (like the 111Unix-style "more" command), without writing it to a file, use 112the -m (more) option while decrypting: 113 pgp -m ciphertextfile 114 115To specify that the recipient's decrypted plaintext will be shown 116ONLY on her screen and cannot be saved to disk, add the -m option: 117 pgp -steam message.txt her_userid 118 119To recover the original plaintext filename while decrypting, add 120the -p option: 121 pgp -p ciphertextfile 122 123To use a Unix-style filter mode, reading from standard input and 124writing to standard output, add the -f option: 125 pgp -feast her_userid <inputfile >outputfile 126 127To include additional userids from a textfile when encrypting a 128message, use the -@ option: 129 pgp -e textfile one_userid -@moreids.txt 130