3 EasyPG is yet another GnuPG interface for Emacs. It consists of two parts:
5 - "The EasyPG Assistant"
6 A GUI frontend of GnuPG
8 A library to interact with GnuPG
10 NOTE: EasyPG is neither a fork nor a re-implementation of PGG.
14 ** GNU Emacs 21.4 or XEmacs 21.4
25 Add the following line to your ~/.emacs
29 Then you can browse your keyring by `M-x epa-list-keys'. In addition,
30 you can do some cryptographic operations on dired.
34 : e (or M-x epa-dired-do-encrypt)
35 (select recipients and click [OK])
39 There are security pitfalls around Emacs.
41 ** Passphrase may leak to a temporary file.
43 The function call-process-region writes data in region to a temporary
44 file. If your PGP library used this function, your passphrases would
45 leak to the filesystem.
47 The EasyPG Library does not use call-process-region to communicate
48 with a gpg subprocess.
50 ** Passphrase may be stolen from a core file.
52 If Emacs crashes and dumps core, Lisp strings in memory are also
53 dumped within the core file. read-passwd function clears passphrase
54 strings by (fillarray string 0) to avoid this risk. However, Emacs
55 performs compaction in gc_sweep phase. If GC happens before fillarray,
56 passphrase strings may be moved elsewhere in memory. Therefore,
57 passphrase caching in elisp is generally a bad idea.
59 The EasyPG Library dares to disable passphrase caching. Fortunately,
60 there is more secure way to cache passphrases - use gpg-agent.