1 ;;; epa-dired.el --- the EasyPG Assistant, dired extension
2 ;; Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
4 ;; Author: Daiki Ueno <ueno@unixuser.org>
5 ;; Keywords: PGP, GnuPG
7 ;; This file is part of GNU Emacs.
9 ;; GNU Emacs is free software: you can redistribute it and/or modify
10 ;; it under the terms of the GNU General Public License as published by
11 ;; the Free Software Foundation, either version 3 of the License, or
12 ;; (at your option) any later version.
14 ;; GNU Emacs is distributed in the hope that it will be useful,
15 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;; GNU General Public License for more details.
19 ;; You should have received a copy of the GNU General Public License
20 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
28 (defun epa-dired-do-decrypt ()
29 "Decrypt marked files."
31 (let ((file-list (dired-get-marked-files)))
33 (epa-decrypt-file (expand-file-name (car file-list
)))
34 (setq file-list
(cdr file-list
)))
38 (defun epa-dired-do-verify ()
39 "Verify marked files."
41 (let ((file-list (dired-get-marked-files)))
43 (epa-verify-file (expand-file-name (car file-list
)))
44 (setq file-list
(cdr file-list
)))))
47 (defun epa-dired-do-sign ()
50 (let ((file-list (dired-get-marked-files)))
53 (expand-file-name (car file-list
))
54 (epa-select-keys (epg-make-context) "Select keys for signing.
55 If no one is selected, default secret key is used. "
57 (y-or-n-p "Make a detached signature? "))
58 (setq file-list
(cdr file-list
)))
62 (defun epa-dired-do-encrypt ()
63 "Encrypt marked files."
65 (let ((file-list (dired-get-marked-files)))
68 (expand-file-name (car file-list
))
69 (epa-select-keys (epg-make-context) "Select recipents for encryption.
70 If no one is selected, symmetric encryption will be performed. "))
71 (setq file-list
(cdr file-list
)))
76 ;; arch-tag: 2025700b-48d0-4684-bc94-228ad1f8e9ff
77 ;;; epa-dired.el ends here