dart-pg
dart-pg copied to clipboard
Not able to get original messgae while decrypt and decrypt and verify
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'