cryptoSecretBoxOpenEasy method

  1. @override
Future<String> cryptoSecretBoxOpenEasy(
  1. String ciphertext,
  2. String nonce,
  3. String key
)
override

Implementation

@override
Future<String> cryptoSecretBoxOpenEasy(
  String ciphertext,
  String nonce,
  String key,
) async {
  final data = await methodChannel.invokeMethod<String>(
    secretBoxOpenEasyMethod,
    <String, dynamic>{
      'ciphertext': ciphertext,
      'nonce': nonce,
      'key': key,
    },
  );
  return data ?? '';
}