how should I respond to "Encryption key for doc.gpg?" in GNU Emacs?
Hi,
I've been trying to setup encrypting files with emacs on SuSE 8.2 using Emacs 21.2.1 and crypt++.el 2.92. I have byte compiled crypt++.el and placed it in (what I believe is the correct path) '/usr/share/emacs/21.2/lisp' and added the following lines to my ~/.emacs file:
; dependencies
(setq load-path (append load-path (list "/usr/share/emacs/21.2/lisp)))
; requirements
(require 'crypt++)
; compression stuff
(modify-coding-system-alist 'file "\\.bz\\'" 'no-conversion)
(modify-coding-system-alist 'file "\\.bz2\\'" 'no-conversion)
(modify-coding-system-alist 'file "\\.gpg\\'" 'no-conversion)
(modify-coding-system-alist 'file "\\.gz\\'" 'no-conversion)
(modify-coding-system-alist 'file "\\.Z\\'" 'no-conversion)
; mod script
(if (load "crypt++" t)
(progn
(setq crypt-encryption-type 'gpg)
(setq crypt-confirm-password t)
(crypt-rebuild-tables)))
I think I am missing either a path to my ~/.gnupg/secring.gpg...or I need to insert 'default-key key_ID' in the ~/.gnupg/gpg.conf or to uncomment the '(crypt-set-encryption-key)' function in the crypt++ file. I am guessing here. The problem I am having is when I try loading a simple 'doc.gpg' file that I encrypted with my key using gpg, I should be prompted for my sec key password, but instead I am prompted for "Encryption key for doc.gpg?" while in 'Lisp Interaction' mode. No matter what values I provide, sec key_ID or pub key_ID or the path, I am taken to 'Text GPG Crypt Fill' mode and blank buffer. I am never prompted for a password.
Any suggestions?
Sincerely,
Joseph
Last edited by Joseph Schiller; 10-22-2003 at 12:40 PM.
|