cryptoSecretBoxEasy method
Implementation
@override
Future<String> cryptoSecretBoxEasy(
String plaintext,
String nonce,
String key,
) async {
final data = await methodChannel.invokeMethod<String>(
secretBoxEasyMethod,
<String, dynamic>{
'plaintext': plaintext,
'nonce': nonce,
'key': key,
},
);
return data ?? '';
}