* epg.el (epg-passphrase-callback-function): Always display key-id.
+2006-04-12 Daiki Ueno <ueno@unixuser.org>
+
+ * epg-file.el (epg-file-write-region): Support public key encryption.
+
+ * epg.el (epg-passphrase-callback-function): Always display key-id.
+
(let ((coding-system-for-write 'binary)
(coding-system-for-read 'binary)
(context (epg-make-context))
+ recipients
+ string
cipher)
- (when (setq cipher (epg-encrypt-string context (buffer-string) nil))
+ (while (not (equal (setq string
+ (read-string "To (end with an empty line): "))
+ ""))
+ (setq recipients (cons string recipients)))
+ (when (setq cipher (epg-encrypt-string context (buffer-string)
+ recipients))
(if (and (memq system-type '(ms-dos windows-nt))
(boundp 'buffer-file-type))
(setq buffer-file-type t))
"Passphrase for symmetric encryption: "
(if (eq key-id 'PIN)
"Passphrase for PIN: "
- (format "Passphrase for %s: "
- (let ((entry (assoc key-id epg-user-id-alist)))
- (if entry
- (cdr entry)
- key-id)))))))
+ (let ((entry (assoc key-id epg-user-id-alist)))
+ (if entry
+ (format "Passphrase for %s %s: " key-id (cdr entry))
+ (format "Passphrase for %s: " key-id)))))))
(defun epg-progress-callback-function (what char current total handback)
(message "%s: %d%%/%d%%" what current total))