Questions tagged [encryption]
26 questions
27
votes
3 answers
How to type the password of a .gpg file only when opening it
(I understand the security implications of the following, and I'm fine with them.)
I have a single encrypted file in my org directory, diary.org.gpg.
I never did any special configuration for it to work, still
Whenever I visit the file, I'm…

Malabarba
- 22,878
- 6
- 78
- 163
12
votes
1 answer
How to automatically encrypt orgmode files?
I have a git repository where some org-mode files live. Some of them have a private nature and the server where the git repository lives can be accessed by some untrusted third party. Thatswhy I want to encrypt the private org files.
What I'd like…

Jens Kubieziel
- 681
- 10
- 26
12
votes
1 answer
How to get gpg-agent to cache the passphrases I enter when reading/saving *.gpg files?
I want to work with gpg-encrypted files using Emacs, and would like to be able to enter the passphrase for each encrypted file only once per Emacs session.
I used to be able to do this by setting the variable…

kjo
- 3,145
- 14
- 42
8
votes
2 answers
How do you select under emacs the key you sign/encrypt with when using mml?
Long time mutt user, I am currently trying to learn how to deal with my mail from within emacs with the help of mu4e.
When it comes to signing mail, I use the following
(add-hook 'message-send-hook 'mml-secure-message-sign-pgpmime)
which…

csantosb
- 1,045
- 6
- 15
7
votes
1 answer
Emacs failing to save encrypted file
I've used Emacs' built-in gpg support to encrypt/decrypt files for years. A few days ago, I tried to save an ecrypted file that had changes and the save wouldn't finish. The minibuffer shows "Saving file ..." but doesn't save.
Emacs doesn't hang…

vortek
- 193
- 4
7
votes
0 answers
Saving a .tar.gpg file
Saving a .tar file in Emacs works as expected. Saving a .gpg file also works as expected.
However, when I save a .tar.gpg file, instead of saving an encrypted form of the actual tar file, it instead saves an encrypted form of what the tar file…

Nolan Akash
- 171
- 2
5
votes
1 answer
Specifying how history is managed for each buffer
After editing a couple of encrypted files with Emacs and EasyPG Assistant I realized that parts of those files were still stored in various lists within Emacs, e.g the kill-ring and the minibuffer history. This, along with things like savehist,…

thkala
- 161
- 3
3
votes
1 answer
Emacs not prompting for password when opening gpg file
I'm trying to get started with encryption on emacs and I'm experiencing the same issue as mentioned in this question:Emacs opens gpg file without asking for passphrase. When I save a .gpg file, emacs prompts for the password to use, but then I can…

mowwwalker
- 211
- 2
- 6
3
votes
1 answer
org-encrypt-entry doesn't work
Below is debugger results. epa does work fwiw.
Debugger entered--Lisp error: (error "Encrypt failed")
signal(error ("Encrypt failed"))
error("Encrypt failed")
org-encrypt-entry()
funcall-interactively(org-encrypt-entry)
…

vv111y
- 53
- 5
2
votes
1 answer
Run shell program on e-mail in mu4e
I receive GnuPG-encrypted (and signed) e-mails through an MS Exchange server. Unfortunately, the exchange server messes up the GPG format, such that mu4e cannot decrypt correctly.
This is a known issue with MS Exchange servers. For instance,…

user64060
- 45
- 3
2
votes
0 answers
Encrypting Org export
I have a GPG encrypted Org file (title.org.gpg) that I interact with transparently using epa. I would like to export this to a GPG encrypted PDF. Currently I do this by using the usual LaTeX export (C-c C-e l...), manually encrypting afterwards. How…

user
- 51
- 5
2
votes
1 answer
How to encrypt different headings to different keys
I'd like to encrypt different headings in my org file to different keys, e.g.,
* Heading 1
* Heading 2
where Heading 1 should be encrypted to me1@example.com and Heading 2 should be encrypted to me2@example.com, using gpg.
How can I do this?

andreas-h
- 1,559
- 13
- 22
2
votes
1 answer
How to configure EasyPG with Gpg4win or any other Windows GPG version?
I am having a hard time getting GPG to work in Emacs under Windows.
The configuration options I tried:
(setq epg-gpg-program "c:/Program Files/GNU/GnuPG/gpg2.exe")
(setq epg-gpg-home-directory "C:/Documents and Settings/user/My…

Alexander Shcheblikin
- 855
- 8
- 19
1
vote
1 answer
Simple password based file decryption/encryption compatible with command line program?
What works currently: With emacs25 (as comes with ubuntu 18) I use ccrypt on the command line to selectively en/decrypt a few specific text files. There is a package elpa-ps-ccrypt which, on encountering such a file, asks for the password, decrypts…

Harald
- 218
- 1
- 8
1
vote
0 answers
How can I edit files within encrypted zip files?
Currently I can use emacs to edit text files within zip files no problem. I simply get a directory listing from which I can choose the document that I want to edit.
Is there anyway to edit text files that are located within encrypted zip files?
I…

Hitomi86
- 13
- 2