Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get raw content from signed message #55

Open
trueToastedCode opened this issue Mar 10, 2023 · 3 comments
Open

Get raw content from signed message #55

trueToastedCode opened this issue Mar 10, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@trueToastedCode
Copy link

trueToastedCode commented Mar 10, 2023

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

@Myzel394
Copy link

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

@jerson
Copy link
Owner

jerson commented Sep 16, 2023

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 jerson added the enhancement New feature or request label Sep 16, 2023
@divinebird
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants