decryptMessageAsync method
Decrypts an encrypted message string into the corresponding clear-text string.
encryptedMessage
- The encrypted message to decrypt.
Returns the decrypted message as a String.
Implementation
Future<String> decryptMessageAsync(String encryptedMessage) {
final _TransferablePointer<NativeSealdAnonymousEncryptionSession> tPtr =
_ptr;
return compute(
(String encryptedMessage) => SealdAnonymousEncryptionSession._(tPtr)
.decryptMessage(encryptedMessage),
encryptedMessage);
}