convert method

  1. @override
String convert(
  1. Map<String, dynamic> input
)
override

Converts input and returns the result of the conversion.

Implementation

@override
String convert(Map<String, dynamic> input) {
  final json = jsonEncode(input);
  final encrypted = sl<EncryptionService>()
      .aesCbcEncrypt(utf8.encode(password), utf8.encode(json));
  return base64Encode(encrypted);
}