encryptMessageAsync method

Future<String> encryptMessageAsync(
  1. String clearMessage
)

Encrypts a clear-text string into an encrypted message, for the recipients of this session.

clearMessage - The message to encrypt. Returns the encrypted message as a String.

Implementation

Future<String> encryptMessageAsync(String clearMessage) {
  final _TransferablePointer<NativeSealdEncryptionSession> tPtr = _ptr;
  return compute(
      (String clearMessage) =>
          SealdEncryptionSession._(tPtr).encryptMessage(clearMessage),
      clearMessage);
}