encrypt method

  1. @override
Future<Map?> encrypt(
  1. String key,
  2. String iv,
  3. String adata,
  4. String pt,
  5. int tagLength,
)
override

Implementation

@override
Future<Map<dynamic, dynamic>?> encrypt(
    String key, String iv, String adata, String pt, int tagLength) async {
  final encryptData =
      await _methodChannel.invokeMethod<Map<dynamic, dynamic>?>('encrypt', {
    'key': key,
    'iv': iv,
    'adata': adata,
    'pt': pt,
    'tagLength': tagLength,
  });
  return encryptData;
}