LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-22-2003, 01:35 PM   #1
Joseph Schiller
Member
 
Registered: Oct 2003
Location: New Jersey
Posts: 44

Rep: Reputation: 15
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 01:40 PM.
 
Old 10-24-2003, 12:51 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,693
Blog Entries: 54

Rep: Reputation: 2961Reputation: 2961Reputation: 2961Reputation: 2961Reputation: 2961Reputation: 2961Reputation: 2961Reputation: 2961Reputation: 2961Reputation: 2961Reputation: 2961
//moderator.note: I'll move this to /Linux - programming, AFAIK this isn't a security question but a config/LISP one.
I hope chances of getting it answered there are higher.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you explain the difference between "Free Software (GNU)" and "Open Source"? vharishankar General 5 03-03-2005 10:40 AM
anyone read "GNU Emacs" before ? black Linux - General 7 08-12-2004 05:10 PM
bash equivalence of tcsh "alias em "emacs \!:1 &""? rgiggs Slackware 3 07-29-2004 03:07 AM
RH9 installation seemed ok, but bootup stops on a fat black "x" & won't respond. bikethief Red Hat 2 02-01-2004 09:18 AM
kppp->modem query, but "does not respond" captainstorm Linux - Newbie 4 07-16-2003 05:55 AM


All times are GMT -5. The time now is 10:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration