[pass] [PATCH] reencrypt_path: use --with-colons with gpg
schalox
schalox at gmail.com
Thu Apr 24 14:52:39 CEST 2014
On 22.04.2014, Jason A. Donenfeld wrote:
> This gives us the full fingerprint, when colons are specified. I like this,
> of course.
>
> However, current_keys still gives us the smaller id, not the full
> fingerprint. Can you figure out how to massage that --list-only -v 2>&1
> hack into something that makes more sense and gives a full fingerprint? If
> so, then roll that patch up with this one, and I'll merge.
Gnupg's FAQ recommends[0] using this:
gpg --batch --decrypt --list-only --status-fd 1 2>/dev/null | \
awk '/^\[GNUPG:\] ENC_TO / { print $3 }'
We could use this if we'd replace the awk statement with grep and cut.
After searching through Gnupg-users mailing-list and trying different
options in various ways, I couldn't find a way to use --list-only with
--with-colons together.
How would you like to proceed?
[0] http://www.gnupg.org/faq/GnuPG-FAQ.html#how-can-i-get-list-of-key-ids-used-to-encrypt-a-message
More information about the Password-Store
mailing list