encryptToBase64 method
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;
}