Questions tagged [epa]

15 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
21
votes
2 answers

Enabling minibuffer pinentry with Emacs 25 and GnuPG 2.1 on Ubuntu Xenial

I had to do quite some diving and hunting through documentation and forums, so I figured I might as well do a Q&A here for others: How do I enable GnuPG passphrase prompting in the minibuffer? The Emacs 25.1 changelog says: ** pinentry.el allows…
Oliver Scholz
  • 846
  • 7
  • 12
17
votes
1 answer

Unable to decrypt .gpg file using emacs but command line gpg works

I have an accounts.org.gpg file. I can open it using gpg directly: $ gpg -d ./accounts.org.gpg You need a passphrase to unlock the secret key for user: "Omair Majid " 4096-bit RSA key, ID 7CC8AAC6, created 2012-01-18 (main key ID…
omajid
  • 508
  • 4
  • 12
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
5
votes
2 answers

EPA (EasyPG Assistant): How to encrypt for *two* of my own keys? OR How are key-ids used to select keys

I want to tell epa to encrypt for two of my public keys. (stored in two different places). I have this at the top of the file: # -*- mode:org; epa-file-encrypt-to: ("arthur@ul___dt.com") -*- which causes it to select the first one key for that…
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
2
votes
1 answer

Emacs opens gpg file without asking for passphrase

I have an ASCII-armored GPG file that I open with a bookmark, and lately emacs has taken to opening it without asking for the passphrase, even if I just started emacs. I can't remember if I used symmetric encoding or my key.…
2
votes
2 answers

Cache symmetric encryption passphrase for a session or some amount of time

I use symmetric encryption in emacs 24 and somewhere along the line the variable named epa-file-cache-passphrase-for-symmetric-encryption seems to have disappeared from emacs. I am going crazy entering the passphrase twice each time I try to save…
mcheema
  • 123
  • 4
1
vote
1 answer

Can I convince EPA encrypt for an expired key

Through a series of my own errors my public key is expired and I don't have the master key with me to re-sign it. I use this key to encrypt many files i use on a daily basis, most importantly org files in emacs. Can I convince EPA to encrypt for the…
1
vote
1 answer

How do I use epa-sign-file and not disrupt functionality of the file with the ASCII-armored signature

I want to be able to gpg sign specific files, specifically org-mode file. However, doing M-x epa-sign-file RET filename.org will create the file filename.org.asc and introduce new text in that file that might disrupt functionality of the file if…
Sparx
  • 1,111
  • 9
  • 20
0
votes
1 answer

Emacs EasyPG unable to locate key, giving: "Decryption failed, No secret key"

I'm trying to use EasyPG to store secrets that I need to set in my init file. To set up, I did the following: Created a secrets.el file that has a couple of declaration like: (setq SOME_SECRET "") I then used epa-encrypt-file to…
fraxture
  • 338
  • 1
  • 13
0
votes
1 answer

Org mode inline display (epa) encrypted image

I've tried to link an image in org-mode ([[image.jpg]] and [[file:image.jpg]]), then C-xC-cC-v to toggle displaying it. That works fine for normal images. Then I encrypt the same image with epa-dired-do-encrypt, the file is encrypted fine and…
Peter Badida
  • 101
  • 3
0
votes
1 answer

Re-Encrypt to more people after the first encrypt

Let's say I create a file with C-xC-f file.gpg, then save it with C-xC-s. I get to this buffer: Select recipients for encryption. If no one is selected, symmetric encryption will be performed. - `M-x epa-mark-key' to mark a key on the line - `M-x…
Peter Badida
  • 101
  • 3
0
votes
0 answers

Decryption and emacs client

I started using (server-start) recently and only using emacs client (with -c -a emacs option). The expected behavior when opening a .gpg file is that epa automatically tries to decrypt the file but for some reason emacs client only gets to see the…
0
votes
1 answer

Why does viewing PGP encrypted PDF fail?

When I try to open a PGP encrypted PDF file.pdf.gpg, then – after entering the PIN in my smartcard reader – a window pops up with an error message: Error: /syntaxerror in (binary token, type=150) Operand stack: -117240830 -2063108939 Execution…
feklee
  • 1,029
  • 5
  • 17