How to prevent emacs from unencrypting my files

Francesco Ariis fa-ml at ariis.it
Wed Feb 24 08:03:05 CET 2016


On Tue, Feb 23, 2016 at 06:27:51PM -1000, John Helly wrote:
> Hi.
> 
> I've just discovered that emacs can unencrypt my *.gpg files without
> prompting for a password. IMHO this largely negates the purpose of
> encrypting files in case I lose my laptop.
> 
> What's the logic behind this? I know it's for convenience but can I
> encrypt my files such they cannot be opened without a passphrase?
> 
> Thanks.
> J.

Hello John,
    I suppose Emacs caches the passphrase somehow. Maybe/Probably
this is done through gpg-agent: scan your gpg-agent config file
for `default-cache-ttl`, set it appropriately and report back!
-F
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: </pipermail/attachments/20160224/4c7bc2cb/attachment.sig>


More information about the Gnupg-users mailing list