Bug report: PGP Decryption Error 'Key Not Found'
AceyPe opened this issue · comments
Describe the bug
When using the PGP Key Generator i think the private key is being generated in a wrong way, as i have tried another website to generate the keys and it works fine with cyberchef but creating the keys through cyberchef results in the error : key not found
To Reproduce
Steps to reproduce the behaviour or a link to the recipe / input used to cause the bug:
1.drag the PGP key generator
2.create 2 keys (private and public)
3. use the PGP encryption to encrypt a message using the public key
4. use the PGP decryption to decrypt the message using the private key and the password
Expected behaviour
The message should be translated to the one encrypted, yet it does not and results in the error mentioned above
Screenshots
If applicable, add screenshots to help explain your problem. ( i will provide some screenshots at a later time)
Desktop (if relevant, please complete the following information):
- OS: Windows 11
- Browser: Opera Gx
- CyberChef version: ver 10
Additional context
Add any other context about the problem here.
Hey, can you provide a URL that gives the 'key not found' error? Trying to follow your reproduction steps seems to result in a valid encryption / decryption cycle for me:
Hey, can you provide a URL that gives the 'key not found' error? Trying to follow your reproduction steps seems to result in a valid encryption / decryption cycle for me:
this is the url i tried :
So, that error is caused by you using a different 'public' and 'private' PGP key. I'm going to guess that you may have 'copied across' the public key into the 'PGP Encrypt' utility, then copied across the private key. When you did the first copy, 'Autobake' may have re-run, causing you to get a different public and private key!
Could you test again, but when you generate the key pair you copy the entire thing into notepad (or equivalent), then copy them individually into the PGP fields?
So, that error is caused by you using a different 'public' and 'private' PGP key. I'm going to guess that you may have 'copied across' the public key into the 'PGP Encrypt' utility, then copied across the private key. When you did the first copy, 'Autobake' may have re-run, causing you to get a different public and private key!
Could you test again, but when you generate the key pair you copy the entire thing into notepad (or equivalent), then copy them individually into the PGP fields?
yep that indeed fixed it, i didn't not expect that at all i thought it would result in the same public and private keys.
thank you for your help.