OSDN Git Service

Update.
[epg/epg.git] / README
1 * What's this?
2
3 EasyPG is a GnuPG interface for Emacs.  It has two aspects: tools to
4 use GnuPG from Emacs (The EasyPG Assistant), and a fully functional
5 library to interact with GnuPG (The EasyPG Library.)
6
7 * Requirements
8
9 ** GNU Emacs 21.4 or XEmacs 21.4
10
11 ** GnuPG 1.4.3
12
13 * Quick start
14
15 ** Installation
16
17   $ ./configure
18   $ sudo make install
19
20 Add the following line to your ~/.emacs
21
22   (require 'epa-setup)
23
24 Then you can browse your keyring by `M-x epa-list-keys'.  In addition,
25 you can do some cryptographic operations on dired.
26
27   M-x dired
28   (mark some files)
29   : e (or M-x epa-dired-do-encrypt)
30   (select recipients and click [OK])
31
32 * MUA Integration
33
34 The EasyPG Library can be used in combination with various MUA (Mail
35 User Agents.)
36
37 ** CVS version of Gnus
38
39 CVS version of Gnus has the native EasyPG binding, simply put the
40 following line into your ~/.emacs.
41
42   (setq mml2015-use 'epg)
43
44 Other options which affect on the binding are
45
46   mml2015-signers
47   mml2015-encrypt-to-self
48   mml2015-cache-passphrase
49   mml2015-passphrase-cache-expiry
50   mml2015-verbose
51
52 NOTE: You need not to install pgg-epg.el in this case.
53
54 ** PGG based MUA
55
56 PGG is somewhat outdated PGP library used by old Gnus, MH-E, etc.
57
58 There is a PGG backend using EasyPG called pgg-epg.el.  However,
59 EasyPG API is a superset of PGG, so pgg-epg.el just emulate the old
60 behavior of pgg.el.  Major features which PGG lacks are
61
62 - Key selection interface
63 - Web of trust support
64 - A mechanism to investigate the verify result
65 - S/MIME support using gpgsm
66
67 ** SEMI based MUA
68
69 SEMI is the MIME library used by Wanderlust, cmail, T-gnus, etc.
70
71 There is an EasyPG capable SEMI library called EMIKO-EasyPG.  It can
72 be downloaded from the same site of the EasyPG distribution point.
73
74 * Security
75
76 There are security pitfalls around Emacs.
77
78 ** Passphrase may leak to a temporary file.
79
80 The function call-process-region writes data in region to a temporary
81 file. If your PGP library used this function, your passphrases would
82 leak to the filesystem.
83
84 The EasyPG Library does not use call-process-region to communicate
85 with a gpg subprocess.
86
87 ** Passphrase may be stolen from a core file.
88
89 If Emacs crashes and dumps core, Lisp strings in memory are also
90 dumped within the core file. read-passwd function clears passphrase
91 strings by (fillarray string 0) to avoid this risk. However, Emacs
92 performs compaction in gc_sweep phase. If GC happens before fillarray,
93 passphrase strings may be moved elsewhere in memory. Therefore,
94 passphrase caching in elisp is generally a bad idea.
95
96 The EasyPG Library dares to disable passphrase caching. Fortunately,
97 there is more secure way to cache passphrases - use gpg-agent.