Скачать презентацию Electronic Commerce Using PGP Cryptography Using PGP Скачать презентацию Electronic Commerce Using PGP Cryptography Using PGP

ca65fcbe2a0fd71479880e8bd0970df5.ppt

  • Количество слайдов: 49

Electronic Commerce : Using PGP Cryptography: Using PGP I. Generating and managing keys • Electronic Commerce : Using PGP Cryptography: Using PGP I. Generating and managing keys • Listing, extracting and sending keys • Adding, and removing keys • Key signing and the web of trust II. Encrypting files • Encrypting with signature III. Decrypting files IV. PGP options Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Cryptography: Using PGP I. Generating and managing keys Note: Electronic Commerce : Using PGP Cryptography: Using PGP I. Generating and managing keys Note: To use PGP while using “pine” you may begin at the menu and then type: "!" This will put you at in the UNIX shell Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Generating a Key 1. To create your PGP directory, Electronic Commerce : Using PGP Generating a Key 1. To create your PGP directory, at the UNIX prompt type: mkdir. pgp 2. To start up the PGP software, at the UNIX prompt, type: pgp -kg [Key generation] 3. Choose a key size. For faster operation, choose "1" (512 bits) For more secure operation, choose “ 3" (1024 bits) Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP . 4 Enter a user ID that your key Electronic Commerce : Using PGP . 4 Enter a user ID that your key will be known by - use Firstname Lastname (You should use your name and username) 5. Your private key will be encrypted so that if it is lost, someone else cannot use it You must type in a passphrase that will be used to encrypt your password The passphrase can be as long as you want, and can include punctuation 6. The computer will generate some random number to use to create the keys Wait until the system responds that the keys have been generated Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP You see: I won’t repeat this again ezmail% mkdir Electronic Commerce : Using PGP You see: I won’t repeat this again ezmail% mkdir pgp Type 'exit' to return to Pine. ezmail% pgp -kg Pretty Good Privacy(tm) 2. 6. 2 - Public-key encryption for the 1994 Philip Zimmermann, masses (c) 1990 - Phil's Pretty Good Software. 11 Oct 94 Uses the RSAREF(tm) Toolkit, which is copyright RSA Data Security, Inc Distributed by the Massachusetts Institute of Technology. Export of this software may be restricted by the U. S. government. Current time: 1998/02/03 21: 59 GMT Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP And: Pick your RSA key size: 1) 512 bits- Electronic Commerce : Using PGP And: Pick your RSA key size: 1) 512 bits- Low commercial grade, fast but less secure 2) 768 bits- High commercial grade, medium speed, good security 3) 1024 bits- "Military" grade, slow, highest security Choose 1, 2, or 3, or enter desired number of bits: 1 Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP You see: Choose 1, 2, or 3, or enter Electronic Commerce : Using PGP You see: Choose 1, 2, or 3, or enter desired number of bits: 1 Generating an RSA key with a 512 -bit modulus. You need a user ID for your public key. The desired form for ID is your name, followed by your E-mail address brackets>, if you have an E-mail address. For example: John Q. Smith Enter a user ID for your public key: Sheizaf Rafaeli Electronic Commerce Prof. Sheizaf Rafaeli this user enclosed in

Electronic Commerce : Using PGP You see: You need a pass phrase to protect Electronic Commerce : Using PGP You see: You need a pass phrase to protect your RSA secret key. Your pass phrase can be any sentence or phrase and may have many words, spaces, punctuation, or any other printable characters. Enter pass phrase: XXXXXX Enter same pass phrase again: XXXXXX Note that key generation is a lengthy process. Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Then you see: We need to generate 240 random Electronic Commerce : Using PGP Then you see: We need to generate 240 random bits. This is done by measuring the time intervals between your keystrokes. Please some random text on your keyboard until you hear the beep: 0 * -Enough, thank you. . . **** Key generation completed. Electronic Commerce Prof. Sheizaf Rafaeli enter

Electronic Commerce : Using PGP Listing the keys in your keyring To list the Electronic Commerce : Using PGP Listing the keys in your keyring To list the keys in your (public) keyring, type: pgp -kv [Key view] To list the keys in your public keyring with just signatures, type: pgp -kvv [Key view verbose] To list the keys in your public keyring with signatures and levels of trust displayed, type: pgp -kc [Key check] Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP You see (-kv) ezmail% pgp -kv Pretty Good Privacy(tm) Electronic Commerce : Using PGP You see (-kv) ezmail% pgp -kv Pretty Good Privacy(tm) 2. 6. 2 -. . . the U. S. government. Current time: 1998/02/09 18: 55 GMT Key ring: '/home/u 3/sheizaf/. pgp/pubring. pgp' Type bits/key. ID Date User ID pub 512/7 E 3 E 525 D 1998/02/09 infosoc pub 512/897 B 0849 1998/02/08 Sheizaf Rafaeli 2 matching keys found. Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP You see (-kvv): ezmail% pgp -kvv Pretty Good Privacy(tm) Electronic Commerce : Using PGP You see (-kvv): ezmail% pgp -kvv Pretty Good Privacy(tm) 2. 6. 2. . . U. S. government. Current time: 1998/02/10 14: 14 GMT Key ring: '/home/u 3/sheizaf/. pgp/pubring. pgp' Type bits/key. ID Date This key is signed by me User ID pub 512/7 E 3 E 525 D 1998/02/09 infosoc sig 897 B 0849 Sheizaf Rafaeli pub 512/897 B 0849 1998/02/08 Sheizaf Rafaeli Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Extracting a key from your keyring This takes a Electronic Commerce : Using PGP Extracting a key from your keyring This takes a key from your keyring and puts it in a file, which you can send to someone via e-mail 1. To extract a key from your keyring, type: pgp -kxa [email protected] -or- user. ID filename (optional) [Key extract armored] where [email protected] or user. ID is the e-mail address or user. ID of the key that you want to extract from your keyring (usually your own!) 2. The computer will prompt you for a file name you use to save your public key Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP You’ll see: ezmail% pgp -kxa Sheizaf sheizafkey Pretty Good Electronic Commerce : Using PGP You’ll see: ezmail% pgp -kxa Sheizaf sheizafkey Pretty Good Privacy(tm) 2. 6. 2. . . the U. S. government. Current time: 1998/02/09 18: 42 GMT Extracting from key ring: '/home/u 3/sheizaf/. pgp/pubring. pgp', userid ”Sheizaf". Key for user ID: Sheizaf Rafaeli 512 -bit key, Key ID 897 B 0849, created 1998/02/08 Transport armor file: sheizafkey. asc Key extracted to file ’sheizafkey. asc'. Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP You’ll see: -----BEGIN PGP PUBLIC KEY BLOCK----Version: 2. 6. Electronic Commerce : Using PGP You’ll see: -----BEGIN PGP PUBLIC KEY BLOCK----Version: 2. 6. 2 m. QBNAz. Te. FVMAAAECAOd 0 Go+wi. JTLZPvf. MIgm/d. T 7 KJVz. A+o 4 Neph 7 Sce 58 KRS 8 SD Y 3+MJ 9 BXs 65 Ng. Fo 2+gpvd 4 ru. Qd 72 bmkyp 4 l 7 CEk. ABRG 0 J 0 hvd 2 Fy. ZCBSb 3 Nlbm. Jh d. W 0 g. PGhyb 3 Nlbm. Jh. QGlu. ZGlhbm. Eu. ZWR 1 Pok. AVQMFEDTg. ZLZua. TKni. Xs. ISQEBn. UQ C ANF+5 c 6 i. Rah. Tuoa 5 sh 8 UGKG+RDeth. Vz 9 C 1+2 nfs. UMv. FPLNcq 7 p. Zm. H 43 ds. SJXWta. W ws 9 y. Rzi 7 G 94 pdp 7 Ml. Iw. EKDi 0 Bmhvd 2 Fy. ZA== =b. HK 8 -----END PGP PUBLIC KEY BLOCK-----. Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Using PINE, you can now send the key (in Electronic Commerce : Using PGP Using PINE, you can now send the key (in the form of the file to someone else You format a message and use the <^j> to attach the file ~or~ You can open the. asc file with pico and then copy and paste the public key into an email message as text ~or~ Use Windows cut and paste commands Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP You can use the -f (filter) option to send Electronic Commerce : Using PGP You can use the -f (filter) option to send your public key directly to another person The filter option allows PGP to print the public key directly into the mail program (in our case, ) To use it, type: pgp -kxaf your_user. ID | mail -s “descriptive [email protected] address text” Your public key is printed into an email message and sent to the specified address without you having to exit the UNIX shell Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Adding a Key to Your Keyring For you to Electronic Commerce : Using PGP Adding a Key to Your Keyring For you to be able to encrypt a document to someone else (or verify a digital signature) you must add their public key to your keyring For you to do this, they must first extract their public key, and send it to you You must then save it into a file and follow the instructions to add it to your keyring Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP . 1 Type: pgp -ka filename [Key add] where Electronic Commerce : Using PGP . 1 Type: pgp -ka filename [Key add] where filename is the file that contains the public key that you want to add to your keyring 2. If the key is not certified, you have to decide if you want to certify (e. g. trust) it You need your private key passphrase to do this 3. The selection you make from the menu determines how much trust you have in the person This is important because it maintains and extends the “web of trust” that makes PGP work You have just added the key in to your keyring! Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Removing a key from your keyring At the UNIX Electronic Commerce : Using PGP Removing a key from your keyring At the UNIX prompt, you type: pgp -kr user. ID [Key remove] where the user. ID is the name attached to the key Then, when prompted, type to remove the key If you don’t recall the names of the keys in your keyring, you can see them if you type: pgp -kv [Key view] Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Key signing and the web of trust Levels of Electronic Commerce : Using PGP Key signing and the web of trust Levels of trust 1 = I don’t know: This means that you will be prompted to certify each new public key added which has this person’s signature 2 = No: PGP will ignore certification by this person on new public keys you add 3 = Usually: A key with signatures from two “ 3” people is accepted 4 = Always: the key is accepted without question Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP To sign a key, you type pgp -ks user. Electronic Commerce : Using PGP To sign a key, you type pgp -ks user. ID [Key sign] Experts recommend that you sign your own public key because anyone can create keys with your user. ID, but only you can sign yours To do this, type: pgp -ks your_user. ID -u your_user. ID A self-signed key means that others know it belongs to you Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP When you add a public key, you certify its Electronic Commerce : Using PGP When you add a public key, you certify its validity by signing or “certifying” it This links the user. ID to the public key When you extract it and send it along, your signature goes with it People who receive the key look at your signature and use it to trust that the key belongs to who it is supposed to You can also manually sign keys Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP It is possible to change the level of trust Electronic Commerce : Using PGP It is possible to change the level of trust you have assigned to a public key To do this, type: pgp -ke user. ID [Key edit] You reduce trust if you find out that someone signs and distributes keys without really checking You might raise levels of trust if you find out that a person really understands how the web of trust works and is careful about certifying keys Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Another component of the web of trust is the Electronic Commerce : Using PGP Another component of the web of trust is the “fingerprint” of a key When a key is generated, it receives a unique identifier composed of 16 “hexadecimal” numbers People will often provide the “fingerprint” for their public keys in their signature files so that others can make note of it This fingerprint allows you to verify that the key belongs to the person who claims to have created it Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP This is an example of a public key fingerprint Electronic Commerce : Using PGP This is an example of a public key fingerprint (it’s mine): Key fingerprint = DD DB 14 3 D 5 E 95 FD A 0 9 A AA 91 F 0 05 F 4 7 B E 3 To see the fingerprint of the keys in your public keyring, type: pgp -kvc [Key view check] The “fingerprint” will be listed after each key in your public keyring Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Cryptography: Using PGP I. Generating and managing keys • Electronic Commerce : Using PGP Cryptography: Using PGP I. Generating and managing keys • Listing, extracting and sending keys • Adding, and removing keys • Key signing and the web of trust II. Encrypting files • Encrypting with signature III. Decrypting files IV. PGP options Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Encrypting a file to someone else To encrypt and Electronic Commerce : Using PGP Encrypting a file to someone else To encrypt and sign a file named to someone whose email address is , you type: pgp -eas filename their. [email protected]_address your. ID -u The extension “e” encryptq with a specified public key The extension “a” applies ASCII armor to the file (making a binary file readable as text) The extension “s” uses a secret key to sign the file The extension “u” tells PGP which secret key to use This file appears in encrypted form Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP You will have to enter your passphrase in order Electronic Commerce : Using PGP You will have to enter your passphrase in order to digitally sign (e. g. encrypt with your private key) the file The encrypted file is saved as filename. asc (where filename is the name of the original file) To view this file, you can type: pico filename. asc ~or~ more filename. asc (this command will not allow you to make changes to the file) You can now use to mail this document to the intended recipient as an attachment Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP And, using pico, we see: -----BEGIN PGP MESSAGE----Version: 2. Electronic Commerce : Using PGP And, using pico, we see: -----BEGIN PGP MESSAGE----Version: 2. 6. 2 h. Ew. Dbmkyp 4 l 7 CEk. BAf 4 izm. Zs 4 LTf. Wgiyr 3 t 4//efs. P 8 k. Cr. Q 7 Tx 7 Cc/djo. K 4 Zyt. F/ n. EIT 5 CUCx 3 AQCKUZA+g. Kc. UR 5 Fp 4 f 8 z. Jfz 1 a. Hny. M 6 pg. AAASwp/X 0 fbk 4 up. Fpr 5 r 30 ps+BAgwg. Cffku. Apco. KHnt+R+l. Fy. DYlar. Qpk. Xp. S/Tw 8 Zc 5 r. ZBA/deu. Gnekdl. IS 4 o 4 huw 2 Big. CWCmi. QOZe. LLZmmc. JIja. Nk. EV+d. EWAJufys. ZOZXMVq 2 I 4 Fd 4 Qv. Th. QFObc 3 i PC 7 Kz. Mbk. AEsj 7 WXb+t 8/o 3 lt. QBVSEg. DBP+m/Gb. Qe 8+s 2 CJut. C 3 w+EQ 5 GBNCCcg. BU Z 7 X/e. Edqt. N 50 U+KD/u. ZNNXSEOQ 1 Bpmz. Pih. V 7 O 9 q. MTZGCf. Dt 3 lh 9 j. MEctf. Zd 5 Izp. N Os/Y 6 y+m 357 olx 1 yx 7 lfq+77 r. NK 3 qt. Bon. TBj. NCe. Fk 1 xh. RA 09 KVw. Hp 0 V+g. GGpsy. PA tp. Nu 1 q. Ue. Q 247 x 0 W 7 Z/FQn 3 Nwb 2 LJVm. Qb 7 s. Ns. BI 2 iz. CRi+LAtfb. Cc 2 c 4 a. Pr/tzj. U= =VIXw -----END PGP MESSAGE----- Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Other ways to use PGP in the UNIX shell: Electronic Commerce : Using PGP Other ways to use PGP in the UNIX shell: To send mail directly from the UNIX shell, use: ezmail% mail [email protected] < file. asc To encrypt and send a message from the UNIX shell, use: ezmail% pgp -eatf their_user. ID < file> | [email protected] Electronic Commerce Prof. Sheizaf Rafaeli mail

Electronic Commerce : Using PGP . 6 To compose, encrypt, and send the message Electronic Commerce : Using PGP . 6 To compose, encrypt, and send the message from the UNIX shell, use: ezmail% pgp -eatf their_user. ID | mail [email protected] Note: you must have the public key belonging to the person at in order to encrypt a document to that person You’ll see a blank line - that’s where you begin typing When you’re done, press: ^D Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Using [ezmail% pgp -eatf their_user. ID | mail their_email Electronic Commerce : Using PGP Using [ezmail% pgp -eatf their_user. ID | mail their_email @address], you see: ezmail% pgp -eatf infosoc | mail [email protected] haifa. ac. il Pretty Good Privacy(tm) 2. 6. 2 -. . . the U. S. government. Current time: 1998/02/10 17: 50 GMT Here's another way to send encrypted messages directly from the UNIX shell. The use of the <-eatf> option combined with the <|> pipe option makes this possible. ^D Key for user ID: infosoc 512 -bit key, Key ID 7 E 3 E 525 D, created 1998/02/09 How to stop Electronic Commerce Prof. Sheizaf Rafaeli Text that I typed

Electronic Commerce : Using PGP To sign a plaintext file with your secret key, Electronic Commerce : Using PGP To sign a plaintext file with your secret key, type: pgp -sta filename -u your_user. ID The extension “s” is the command to sign with a secret key The extension “t” saves the file in a text format The extension “a” applies ASCII armor to the file (making a binary file readable as text) The extension “u” tells PGP which secret key to use Although the text can be read, the digital signature is encrypted PGP must be used to verify the signature Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP And, with pico, you see: -----BEGIN PGP SIGNED MESSAGE----This Electronic Commerce : Using PGP And, with pico, you see: -----BEGIN PGP SIGNED MESSAGE----This is a test message. It will be encrypted with your public key and you will need your private key to decrypt and read it. This is a demonstration of the way in which PGP protects the integrity and authenticity of your files. -----BEGIN PGP SIGNATURE----Version: 2. 6. 2 i. QBVAw. UBNs. Hjoqi. NX 5 P 7 l. Ag. ZAQGG 3 QIAh 8 Zl. L 4 a. K/Vsdq. ENFHz. Tbn. YWCWE 6 b. C 4 E 4 u+Sw. L 99 Q 3 AT 8 wl. Tlteab. Xkp. NTz 4 sg. Iiwpu 5 Xlx. W+gj 4 e. JEDa. YZ 7 o. DA== =v. YVw -----END PGP SIGNATURE----- Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Cryptography: Using PGP I. Generating and managing keys • Electronic Commerce : Using PGP Cryptography: Using PGP I. Generating and managing keys • Listing, extracting and sending keys • Adding, and removing keys • Key signing and the web of trust II. Encrypting files • Encrypting with signature III. Decrypting files IV. PGP options Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Decrypting a File When you receive the file, you Electronic Commerce : Using PGP Decrypting a File When you receive the file, you save it to the UNIX shell, where you will then decode it 1. To decrypt an encrypted file called “filename” (e. g. encrypted with your public key), you type: pgp filename. asc Or whatever the file extension is 2. You will have to type in the password to your secret key 3. If you are able to decrypt the file properly, PGP will tell you the filename of the decrypted file 4. You can then view this file with the UNIX command or edit it with the word processor Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP You type “v” to move to the viewer and Electronic Commerce : Using PGP You type “v” to move to the viewer and you see: 1 0 lines Text/PLAIN 2 ~489 bytes Text/PLAIN, "decrypt this!" Then you type “s” to save the message to a file in your directory 1 0 lines Text/PLAIN 2 ~489 bytes Text/PLAIN, "decrypt this!" Copy attachment to file in home directory: test. asc Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Then, to decrypt and read the message, you go Electronic Commerce : Using PGP Then, to decrypt and read the message, you go back to the main menu and UNIX shell typing “!” from the main Pine menu You see: Type 'exit' to return to Pine. ezmail% ls Mail somefile. txt test. asc Text another. txt prop. txt Type 'exit' to return to Pine. ezmail% The one we want! Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Decrypting and checking signatures After saving the message to Electronic Commerce : Using PGP Decrypting and checking signatures After saving the message to your directory, type: pgp filename. asc -o filename [Output] The second is optional and will name the file after it is decrypted Note that the verification of the signature is done automatically during encryption, and depends on you having the senders public key in your pubring. pgp keyring Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Decrypting a message and leaving the signature in it Electronic Commerce : Using PGP Decrypting a message and leaving the signature in it You type: pgp -d filename [Decrypt with signature] You are left with a plaintext message that has the encrypted signature at the bottom This can be useful if you want to send the message to a third party and allow them to also verify the signature Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Cryptography: Using PGP I. Generating and managing keys • Electronic Commerce : Using PGP Cryptography: Using PGP I. Generating and managing keys • Listing, extracting and sending keys • Adding, and removing keys • Key signing and the web of trust II. Encrypting files • Encrypting with signature III. Decrypting files IV. PGP options Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP IV. PGP options -e = Encrypt with a public Electronic Commerce : Using PGP IV. PGP options -e = Encrypt with a public key -a = ASCII armor -s = Sign with your secret key -t = Converts PGP files into text files -f = Filter will write the file to standard file output -o = Output will specify the name for a decrypted file -w = Wipes or erases the original plaintext file Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Here's a quick summary of PGP v 2. 6 Electronic Commerce : Using PGP Here's a quick summary of PGP v 2. 6 commands. To encrypt a plaintext file with the recipient's public key: pgp -e textfile her_userid To sign a plaintext file with your secret key and encrypt it in AC SCII form with her public key: pgp -eas textfile her_userid [-u your_userid] To sign a plaintext file with your secret key and have the output readable to people without running PGP first: pgp -sta textfile [-u your_userid] Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP To sign a plaintext file with your secret key, Electronic Commerce : Using PGP To sign a plaintext file with your secret key, and then encrypt it with the recipient's public key: pgp -es textfile her_userid [-u your_userid] To decrypt an encrypted file, or to check the signature integrity of a signed file: pgp ciphertextfile [-o plaintextfile] To decrypt a message leaving the signature intact: pgp -d ciphertextfile To create a signature certificate that is detached from the document: pgp -sb textfile [-u your_userid] Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP To detach a signature certificate from a signed message: Electronic Commerce : Using PGP To detach a signature certificate from a signed message: pgp -b ciphertextfile To view the decrypted plaintext output on your screen (like the Unix-style "more" command), without writing it to a file, use the -m (more) option while decrypting: pgp -m ciphertextfile To specify that the recipient's decrypted plaintext will be shown ONLY on her screen and cannot be saved to disk, add the -m option: pgp -steam message. txt her_userid To recover the original plaintext filename while decrypting, add the -p option: pgp -p ciphertextfile Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP Key management: To generate your own unique public/secret key Electronic Commerce : Using PGP Key management: To generate your own unique public/secret key pair: pgp -kg To add a public or secret key file's contents to your public or secret key ring: pgp -ka keyfile [keyring] To extract (copy) a key from your public or secret key ring: pgp -kx userid keyfile [keyring] ~or~ pgp -kxa userid keyfile [keyring] Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP To view the contents of your public key ring: Electronic Commerce : Using PGP To view the contents of your public key ring: pgp -kv[v] [userid] [keyring] To view the "fingerprint" of a public key, to help verify it over the telephone with its owner: pgp -kvc [userid] [keyring] To view the contents and check the certifying signatures of your public key ring: pgp -kc [userid] [keyring] To edit the userid or pass phrase for your secret key: pgp -ke userid [keyring] Electronic Commerce Prof. Sheizaf Rafaeli

Electronic Commerce : Using PGP To edit the trust parameters for a public key: Electronic Commerce : Using PGP To edit the trust parameters for a public key: pgp -ke userid[keyring] To remove a key or just a userid from your public key ring: pgp -kr userid [keyring] To sign and certify someone else's public key on your public key ring: pgp -ks her_userid [-u your_userid] [keyring] Electronic Commerce Prof. Sheizaf Rafaeli