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

Not able to get original messgae while decrypt and decrypt and verify #8

Open
Jake-AJ opened this issue May 16, 2024 · 0 comments
Open

Comments

@Jake-AJ
Copy link

Jake-AJ commented May 16, 2024

final spublicKey = await OpenPGP.readPublicKey(pubKey);
final rprivateKey = await OpenPGP.decryptPrivateKey(privKey1, passphrase);

 final decryptedMessage1 = await OpenPGP.decrypt(
  await OpenPGP.readMessage(encryptedMessage),
  decryptionKeys: [rprivateKey],
  verificationKeys: [spublicKey],
);
final verifications = decryptedMessage1.armor();
print( "decrypting message ---> ${verifications}");
 setState(() {
   _decryptVerifyController.text = verifications.toString();
 });          

Result :
Instance of 'Message'

Screenshot 2024-05-16 at 13 11 26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant