flutter-openpgp
flutter-openpgp copied to clipboard
Get raw content from signed message
How to get the content from a signed message in combination with the public key?
@trueToastedCode Great question! I'm facing the exact same issue! :D Did you find a solution to this? @jerson is this even possible?
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
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.