encryptToHex method

  1. @override
Future<String?> encryptToHex(
  1. String string,
  2. String key, {
  3. String iv = _iv,
})
override

Implementation

@override
Future<String?> encryptToHex(String string, String key,
    {String iv = _iv}) async {
  if (string.isEmpty) {
    return '';
  }
  final String? crypt =
      await methodChannel.invokeMethod('encryptToHex', [string, key, iv]);
  return crypt;
}