Next: , Previous: , Up: Top   [Contents][Index]

5 Caching Passphrases

Typing passphrases is a troublesome task if you frequently open and close the same file. GnuPG and EasyPG Assistant provide mechanisms to remember your passphrases for a limited time. Using these, you only need to re-enter the passphrase occasionally. However, the configuration is a bit confusing since it depends on your GnuPG installationSee GnuPG version compatibility, encryption method (symmetric or public key), and whether or not you want to use gpg-agent. Here are some questions:

  1. Do you use GnuPG version 2.1 or 2.0 instead of GnuPG version 1.4?
  2. Do you use symmetric encryption rather than public key encryption?
  3. Do you want to use gpg-agent?

Here are configurations depending on your answers:

YesYesYesSet up gpg-agent.
YesYesNoYou can’t, without gpg-agent.
YesNoYesSet up gpg-agent.
YesNoNoYou can’t, without gpg-agent.
NoYesYesSet up elisp passphrase cache.
NoYesNoSet up elisp passphrase cache.
NoNoYesSet up gpg-agent.
NoNoNoYou can’t, without gpg-agent.

To set up gpg-agent, follow the instruction in GnuPG manual. see (gnupg)Invoking GPG-AGENT.

To set up elisp passphrase cache, set epa-file-cache-passphrase-for-symmetric-encryption. See Encrypting/decrypting gpg files.