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