3 EasyPG is yet another GnuPG interface for Emacs. It consists of two
4 parts: transparent file encryption utility and easy-to-use elisp
5 library to interact with GnuPG.
9 ** GNU Emacs 21.4 or later
11 ** XEmacs 21.4 or later
13 ** GnuPG 1.4.3 or later
17 (0) Put (require 'epg-file) in your ~/.emacs.el
21 (2) C-x C-f ~/test.gpg
23 * Advantages over other competitors
25 There are many competitors of EasyPG such as Mailcrypt, PGG, gpg.el,
26 etc. EasyPG has some advantages over them.
28 ** EasyPG avoides potential security flaws of Emacs.
30 *** `call-process-region' writes data in region to a temporary file.
32 PGG and gpg.el use `call-process-region' to communicate with a gpg
33 subprocess. Your passphrases may leak to the filesystem.
35 *** There is no way to clear strings safely.
37 If Emacs crashed and dumps core, passphrase strings in memory are also
38 dumped with the core file. `read-passwd' function clears passphrase
39 strings by `(fillarray string 0)'. However, it is not perfect. Emacs
40 does compaction of small strings in gc_sweep phase. If GC happens
41 before `fillarray', passphrase strings may be copied elsewhere in
42 memory. So, it is recommended that if you are done with passphrase
43 you should clear it manually. However, PGG and gpg.el enables
44 passphrase caching by default.
46 ** Most GnuPG features are accessible from Emacs
48 As the name indicates, EasyPG is inspired by GPGME (GnuPG Made Easy),
49 and the library interface is close to GPGME.