60
15: PGP/ GnuPG 15-1 PGP簡介 15-2 GnuPG簡介 15-3 GnuPG安裝方法 15-4 PGP/ GnuPG的使用

第15章: PGP/ GnuPG - NKNU

  • Upload
    others

  • View
    13

  • Download
    0

Embed Size (px)

Citation preview


PGP

MS-DOS PGP 5.0i
OS/2 PGP 5.0i
Unix/Linux PGP 6.5.8 "i"
Windows 98/ME/NT/2000/XP PGP 8.0PGP
PGP()
Windows XP SP1SP2 Windows 2003
Windows Server 2003 Windows XP SP1
Windows 2000 Professional SP3SP4 Windows 2000 SP4
Mac OS X 10.3.910.4.010.4.1 HP-UX 11iPA-RISC
IBM AIX 5.2
Solaris 8SPARC
GnuPGPGP PGP
GnuPG GPL
Fedora 8 GnuPG2.x.x2.0.8
yum –y install gnupg2 "gpg --version" ,
gpg (GnuPG) 1.4.7 Copyright (C) 2006 Free Software Foundation, Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details. Home: ~/.gnupg : : RSA, RSA-E, RSA-S, ELG-E, DSA : 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH : MD5, SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224 : , ZIP, ZLIB, BZIP2
GnuPG-Windows
PGP for Windows http://www.pgp.com/ PGP Desktop 9.8.1
PGP Desktop
GnuPG –Linux
gpg (GnuPG) 1.4.7; Copyright (C) 2006 Free Software Foundation, Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details. :
(1) DSA Elgamal () (2) DSA () (5) RSA ()
?1
GnuPG gpg --gen-key DSA Elgamal DSARSA
GnuPG
DSA 1024 . ELG-E 1024 4096 . ? (2048)2048 2048 .
0 = <n> = n <n>w = n <n>m = n <n>y = n
? (0) 0 ? (y/N) y ID ; , ID :
"Ke-Huan Lin (Jedi) <[email protected]>"
"Chung-Huang Yang <[email protected]>" (N), (C), (E)(O)/(Q)? O . : :
GnuPG . (, , ) . ..+++++++++++++++++++++++++.+++++++++++++++ +++++++++...+++++++++++++++++++++++++.+++++ . , ! ( 300 ) . (, , ) . .+++++...+++++++++++++++++++++++++++++++++++ ..+++++.+++++.++++++++++++++++++++++++++++++ >+++++.+++++>.+++++>+++++.+++++^^^^ gpg: /home/chyang/.gnupg/trustdb.gpg: gpg: C09259FD . gpg: gpg: 3 1 PGP gpg: : 0 : 1 : 0 : 0-, 0q, 0n, 0m, 0f, 1u pub 1024D/C09259FD 2008-04-11
= 0047 8938 EB10 B35C 2AE1 ED26 1A76 625D C092 59FD uid Chung-Huang Yang <[email protected]> sub 2048g/37109649 2008-04-11
GnuPG-GnuPG()

GnuPG

ID
ASCII gpg -- armor --output <> --export <ID> gpg --armor -- output chyang.asc --export [email protected]
GnuPG-GnuPG
GnuPG-
encrypt --recipient <ID> < >
gpg --output secret.gpg --encrypt --recipient
[email protected] plain.txt
gpg: E1D2CF20: pub 2048g/E1D2CF20 2008-04-11 Chung-Huang Yang <[email protected]>
: F9D5 2F25 9134 DA17 667C 79EC 6C22 D2A5 FEDB 0C7E
: 2F4D F1F8 8C02 81FA C5BC FA91 1828 BE1B E1D2 CF20 ** ID . **** , no ? (y/N) y
GnuPG
: "Chung-Huang Yang <[email protected]>" 2048 ELG-E , ID E1D2CF20, 2008-04-11 ( ID FEDB0C7E) : gpg: 2048 ELG-E , ID E1D2CF20, 2008-04-11
" Chung-Huang Yang <[email protected]>"

GnuPG plain.txt
gpg --armor --output plain.gpg --sign --recipient [email protected] plain.txt plain.gpg gpg --armor --output plain.gpg --encrypt --recipient [email protected] plain.txt
--detach-sign

gpg: E1D2CF20: pub 2048g/E1D2CF20 2008-04-11 Chung-Huang Yang <[email protected]>
: F9D5 2F25 9134 DA17 667C 79EC 6C22 D2A5 FEDB 0C7E
: 2F4D F1F8 8C02 81FA C5BC FA91 1828 BE1B E1D2 CF20 ** ID . **** , no ? (y/N) y


gpg: 20080412 () 132317 , DSA ID FEDB0C7E gpg: " Chung-Huang Yang <[email protected]>" gpg: : ! gpg: .
: F9D5 2F25 9134 DA17 667C 79EC 6C22 D2A5 FEDB 0C7E



PGP gpg --fingerprint <ID>

PGP Web of Trust
PGPX.509 CACertification Authority

4
GnuPG
gpg --edit-key <ID>
- gpg (GnuPG) 1.4.7; Copyright (C) 2006 Free Software Foundation, Inc. This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the file COPYING for details. pub 1024D/FEDB0C7E : 2008-04-11 : 2009-04-11 : SC
: : sub 2048g/E1D2CF20 : 2008-04-11 : 2009-04-11 : E [ ] (1). Chung-Huang Yang <[email protected]> > trust pub 1024D/FEDB0C7E : 2008-04-11 : 2009-04-11 : SC
: : sub 2048g/E1D2CF20 : 2008-04-11 : 2009-04-11 : E [ ] (1). Chung-Huang Yang <[email protected]> (, ... 1 = 2 = ** 3 = 4 = 5 = m =
? 5 ? (y/N) y pub 1024D/FEDB0C7E : 2008-04-11 : 2009-04-11 : SC
: : sub 2048g/E1D2CF20 : 2008-04-11 : 2009-04-11 : E [ ] (1). Chung-Huang Yang <[email protected]> , . >
gpg --edit-key [email protected]
PGP
PGP Desktop PGP Zip Windows XPPGP Desktop




PGP


-()
Expires Group Cipher Hash Compression Fingerprint Subkeys ADKAdditional Decryption Key Revokers

Request Certificate CA
Change Passphrase

PGPCA
.pgp
PGP Zip
PGP Zip
Conventional PGP
PGP Zip

.pgp
PGP Desktop PGP Messaging AIM PGP Desktop Plug-in PGP Desktop 9.8.1
Microsoft Outlook 2007 (Outlook 12) Microsoft Outlook 2003 SP2 Microsoft Outlook XP SP3 Microsoft Outlook 2000 SP3 Windows Mail 6.0.6000.16386 Outlook Express 6 Mozilla 1.7 Thunderbird 1.0 or later Lotus Notes 5.0.11, 6.x, and 7.0.1 Novell GroupWise 6.5.1 or later
PGP Desktop() PGP Whole Disk Encryption PGP Virtual Disk volumes Encrypt & Sign PGP Zip Decrypt & VerifyPGP Zip ShredPGP Zip Create SDASelf Decrypting Archive Passphrase

PGP
PGPGnuPG

J. Callas, L. Donnerhacke, H. Finney, D. Shaw, and R. Thayer, OpenPGP Message Format, RFC 4880, 2007 Free Software Foundation, Using the GNU Privacy Guard, 2008 http://www.gnupg.org/documentation/manuals/gnupg.pd f S. Garfinkel, PGP: Pretty Good Privacy, O’Reilly, 1995 OpenPGP Alliance, http://www.openpgp.org/ W. Stallings, Cryptography and Network Security, 4th Edition, Prentice-Hall, Inc., 2006 P. R. Zimmermann, The Official PGP User’s Guide, MIT Press, 1995
15: PGP/ GnuPG