Encrypt the data with a key.
data
key
static Future<String?> encryptWithKey(Object data, String key) => toFuture(SeaJsImpl.encrypt(dartToJs(data)!, key));