encrypt static method

Future<String?> encrypt(
  1. Object data,
  2. KeyPair pair
)

Encrypt the data with the pair.

Implementation

static Future<String?> encrypt(Object data, KeyPair pair) =>
    toFuture(SeaJsImpl.encrypt(dartToJs(data)!, pair));