encryptToBase64 method

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

Implementation

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