onlykey / onlykey.github.io

OnlyKey web apps
Apache License 2.0
24 stars 11 forks source link

Need to send session key back to kbpgp #8

Closed onlykey closed 7 years ago

onlykey commented 7 years ago

The correct session key is now decrypted by OnlyKey image

Now we need to do the magic to import this session key back to the function that needs it to decrypt the data - image

This will likely result in errors as kbpgp is designed to have the private key, may need to load a test key so kbpgp thinks it has the private key and then just remove any errors like if the test key fingerprint does not match the message.

petoem commented 7 years ago

While looking at the kbpgp code, I found this function: https://github.com/keybase/kbpgp/blob/master/lib/openpgp/processor.js#L368

Here is the IcedCoffeeScript version: https://github.com/keybase/kbpgp/blob/master/src/openpgp/processor.iced#L197

Maybe this helps.