<div dir="ltr"><div class="gmail_extra">These should help out:</div><div class="gmail_extra"><a href="http://git.zx2c4.com/password-store/commit/?id=67abc395d981b9b4a5f71fc00a8807195e2865e3">http://git.zx2c4.com/password-store/commit/?id=67abc395d981b9b4a5f71fc00a8807195e2865e3</a><br>
<br><div class="gmail_quote">On Wed, Apr 23, 2014 at 4:47 AM, Jason A. Donenfeld <span dir="ltr"><<a href="mailto:Jason@zx2c4.com" target="_blank">Jason@zx2c4.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra">At some point you're going to want to resolve the keys of a .gpg file or of a key-id-name. Be sure to study the tricks used in reencrypt_path:</div><div class="gmail_extra"><br>
</div>
<div class="gmail_extra"><a href="http://git.zx2c4.com/password-store/tree/src/password-store.sh#n87" target="_blank">http://git.zx2c4.com/password-store/tree/src/password-store.sh#n87</a><br></div><div class="gmail_extra">
<br></div><div class="gmail_extra">
Resolve ids from .gpg files:</div><div class="gmail_extra">gpg -v --list-only --keyid-format long "$passfile" 2>&1 | cut -d ' ' -f 5 | sort -u<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">
Resolve ids from key names:</div><div class="gmail_extra">gpg --list-keys --keyid-format long "${GPG_RECIPIENTS[@]}" | sed -n 's/sub *.*\/\([A-F0-9]\{16\}\) .*/\1/p' | sort -u</div><div class="gmail_extra">
<div><br></div><div>Resolve ids from gpg.conf group:</div><div>gpg --list-config --with-colons | grep ^cfg:group:.*<br></div><div><br></div></div></div>
</blockquote></div><br></div></div>