jamessan / vim-gnupg

This script implements transparent editing of gpg encrypted files.
http://www.vim.org/scripts/script.php?script_id=3645
729 stars 73 forks source link

throw-keyids breaks reading files that have been written with it enabled #50

Closed atrull closed 9 years ago

atrull commented 9 years ago

Hi

This isn't necessarily an improvement request, but rather something worth noting..

When throw-keyids is enabled you see the following:

Old files can be read, but any newly-saved with throw-keyids enabled, are no longer easily readable with the plugin.

throw-keyids is vaguely useful for securing privacy - see https://gist.github.com/bnagy/8914f712f689cc01c267

Could it be possible to specify a decryption key for the plugin ?

Anyway, there you go.

Cheers

Alex

jamessan commented 9 years ago

At least in my testing so far, I can easily open a file that was encrypted with --throw-keyids. An unknown 0x00000000 is added to the set of recipients that will be encrypted to upon save. That could be handled a little better by eliding any recipients whose key is all zeroes.