Today I ran into this problem and found your question looking for an answer. I have seen many fun examples of how to encrypt things for multiple recipients ... never says / shows what happens when you try to decrypt this data. Here is what I got:
user@system ~ $ gpg
Quick note: just for security reasons, one passphrase and one private key should NEVER be provided to anyone else. The key phrase is to keep the secret key โsafeโ if it becomes compromised. One public key is the only thing you need to share with others.
I preface this with the fact that at the moment I have access only to version 1.4.2.2 and I am not able to test these solutions. In a later version, there are certain options that may well be needed. Please try to answer and answer if any of them works.
--local-user/-u looked promising. In the version I had, --help showed use this user-id to sign or decrypt But when I tried, it seemed in vain, further research showed a cruel truth: it seems that the help is incorrect , and this is ONLY an option that uses for "signing" .
This post has a likely solution, although I personally find it dirty:
gpg --try-all-secrets --passphrase <passphrase here> filename.pgp
--passphrase is apparently added in version 1.4.3 . Ugh!
EDIT: Perhaps the best (maybe lower) solution is only available in gpg2? gpg2 seems to have --try-secret-key , which, if I read correctly, might be what we're both looking for?
pythonlarry Dec 14 '13 at 9:12 2013-12-14 09:12
source share