dart-pg icon indicating copy to clipboard operation
dart-pg copied to clipboard

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

Open Jake-AJ opened this issue 1 year ago • 0 comments

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

Jake-AJ avatar May 16 '24 12:05 Jake-AJ