tag:gpgtools.tenderapp.com,2011-11-04:/discussions/feedback/2911-how-is-this-possibleGPGTools: Discussion 2021-01-01T12:36:54Ztag:gpgtools.tenderapp.com,2011-11-04:Comment/432401852017-08-18T15:07:52Z2021-01-01T12:36:54ZGPGServices: I can decrypt cyphertext which is encrypted with someone elses public key<div><p>Interestingly using the command line i get the expected response.... just not with the GUI</p>
<p>-----BEGIN PGP MESSAGE-----</p>
<p>hQIOAwfq5Jrby+ZxEAf+PoqMFZhnbMXQ+JnQNImGxmIrOYNZRLQGD+4ypjOmnU83<br>
cfn4hqwc7SB5zwjmwdCDlFxg2IRgrhzvZ6ev+PH6KZaQN2fPE+GJQAsEGBH3Ie5U<br>
e9COoFakEF95LnvizlbxJCpSuU8E32z3jx/zBscC2+h2bbhFyX0eTel/lGqZVBTQ<br>
vjRXi7pMWS9jCiGj34rhet5dAsEWEL/aia3zk8B737MRmoumUvMfQfc4FOTSsLrw<br>
onGkAB3AiZxpFD/ogZCPrLXbLNESnoe32q8X++iGHWG6OVapytZe3MpeVxuvyn9l<br>
NX+vRX7UbwYiuWNPBeRSkqsjzf9ZCbwmynT+qTW+Cwf/f/muuSaugkYAUDhNdyDi<br>
TUc9dH5tbvMtIKqrq9VWPkQjNrv+1hpIIuUnTCOzAiHt8nFnjAtVTc3psbPGGYqe<br>
vGPioJfq04P0MUz6CermOyxjXpOae6IvXsZ8AVDICvk2vwLYMAdNPAlpTHL+edyQ<br>
MpdNfDlhQFlLGd9Eu/HPMRb9116lCeZ8/RDn1YdCLcaANERVR8WRncMnl42eVXUU<br>
3nQR1q46plJxG09V7CG0bTXYzGHJ2IDZmzDnunSUef0x3poUF27lDSa7vLvqS+ow<br>
XjJhjsPNHIvc/O7BBEs+xUzU+wBFpLnhybGu+ypPDtUKzQ1le/Iw+MaVu4hseJwG<br>
ttJCAa3ul+BknQmL5RXg5gnej8CdSfvmJaKR4J+NCUSZ2pVo9nFmX/CHL+MmjmFu<br>
uqOFE3G9+f2/YN9EKPApE9EzRTRv<br>
=KL14 -----END PGP MESSAGE-----gpg: encrypted with 2048-bit ELG key, ID DBCBE671, created 2010-08-19 "GPGTools Team <a href="mailto:team@gpgtools.org">team@gpgtools.org</a>" gpg: decryption failed: No secret key</p></div>john.alan.woodstag:gpgtools.tenderapp.com,2011-11-04:Comment/432401852017-08-18T15:28:44Z2017-08-18T15:28:44ZGPGServices: I can decrypt cyphertext which is encrypted with someone elses public key<div><p>Hi John,</p>
<p>welcome to the GPGTools support platform. Sorry you are having problems using GPG Suite.</p>
<p>Please see this <a href="https://gpgtools.tenderapp.com/kb/faq/passphrase-management">KB-article</a> on how to manage passwords for your keys.</p>
<p>The third option explains how to clear the cache and remove stored OpenPGP passwords from macOS keychain.</p>
<p>Can you please do that and see if you are then asked for your password when trying to decrypt?</p>
<p>Also if you look at the GPGServices window you see when encrypted a message, it has your own key listed. And that key is used to encrypt to as well (unless you untick that option). That is why you are able to decrypt the message.</p>
<p>Let me know if this answers your question.</p>
<p>All the best,<br>
steve</p></div>Stevetag:gpgtools.tenderapp.com,2011-11-04:Comment/432401852017-08-20T10:43:42Z2021-01-01T12:36:54ZGPGServices: I can decrypt cyphertext which is encrypted with someone elses public key<div><p>Hi Steve,</p>
<p>Thanks for the reply.</p>
<p>I think there may be an issue here, when I use GPGServices to encrypt a text snippet.</p>
<p>Selecting only GPGTools as the recipient (as per this screenshot: <a href="https://ibb.co/fELTWk">https://ibb.co/fELTWk</a>)</p>
<p>I am still prompted for my password and can successfully decrypt the message after encryption. Therefore it must be using my public key to encrypt the message right?</p>
<p>Shouldn't it be using your public key and I should be unable to decrypt?</p></div>john.alan.woodstag:gpgtools.tenderapp.com,2011-11-04:Comment/432401852017-08-20T11:01:01Z2021-01-01T12:36:54ZGPGServices: I can decrypt cyphertext which is encrypted with someone elses public key<div><p>Steve -</p>
<p>I can see my mistake!<br>
There is an 'add to recipients' checkbox.</p>
<p>I'm an idiot.</p>
<p>Best,<br>
John</p></div>john.alan.woodstag:gpgtools.tenderapp.com,2011-11-04:Comment/432401852017-08-21T08:42:17Z2017-08-21T08:42:17ZGPGServices: I can decrypt cyphertext which is encrypted with someone elses public key<div><p>Hey John,</p>
<p>def not an idiot. You indeed found the reason why you are being asked for your OpenPGP password. If you add your own key to the recipients the message is encrypted with both the recipients key and your own key. When then trying to decrypt the message, you will be asked for your password and if that is correct will be able to decrypt the message.</p>
<p>Glad, this is solved for you. I'm closing this discussion. Should you need further assistance or have questions you can re-open this discussion here or open a new one any time.</p>
<p>Best, steve</p></div>Steve