flutter-openpgp icon indicating copy to clipboard operation
flutter-openpgp copied to clipboard

Get raw content from signed message

Open trueToastedCode opened this issue 2 years ago • 3 comments

How to get the content from a signed message in combination with the public key?

trueToastedCode avatar Mar 10 '23 23:03 trueToastedCode

@trueToastedCode Great question! I'm facing the exact same issue! :D Did you find a solution to this? @jerson is this even possible?

Myzel394 avatar May 14 '23 20:05 Myzel394

Hi right now there are not method to get data from signed message

await OpenPGP.signData("text","[privateKey here]","[passphrase here]");

this is a new method that sign and include the message, but right now the verifyData is not returning the Data, is an enchacement we can do

jerson avatar Sep 16 '23 17:09 jerson

After analyzing GO code I have found that verify.... use function openpgp.ReadMessage that return message itself and paramiters. The same function used when call decryptSymmetric.... methods. For extracting data you should put password like "". Something like: await OpenPGP.decryptSymmetric(signedString, "")

These are crutches but it will work as a temporary solution.

divinebird avatar Apr 13 '24 22:04 divinebird