<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">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>