encrypt method

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

Implementation

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