decryptMessageAsync method

Future<String> decryptMessageAsync(
  1. String encryptedMessage
)

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<NativeSealdEncryptionSession> tPtr = _ptr;
  return compute(
      (String encryptedMessage) =>
          SealdEncryptionSession._(tPtr).decryptMessage(encryptedMessage),
      encryptedMessage);
}