If you don't customize
auth-sources, the auth-source library
reads ~/.authinfo.gpg, which is a GnuPG encrypted file. Then
it will check ~/.authinfo but it's not recommended to use such
an unencrypted file.
In Emacs 23 or later there is an option
automatically decrypt *.gpg files. It is enabled by default.
If you are using earlier versions of Emacs, you will need:
(require 'epa-file) (epa-file-enable)
If you want your GnuPG passwords to be cached, set up
or EasyPG Assistant
(see Caching Passphrases).
To quick start, here are some questions:
Here are configurations depending on your answers:
|Yes||Yes||Yes||Set up gpg-agent.
|Yes||Yes||No||You can't, without gpg-agent.
|Yes||No||Yes||Set up gpg-agent.
|Yes||No||No||You can't, without gpg-agent.
|No||Yes||Yes||Set up elisp passphrase cache.
|No||Yes||No||Set up elisp passphrase cache.
|No||No||Yes||Set up gpg-agent.
|No||No||No||You can't, without gpg-agent.
To set up gpg-agent, follow the instruction in GnuPG manual (see Invoking GPG-AGENT).
To set up elisp passphrase cache, set