privateDecrypt static method

String privateDecrypt(
  1. String privateString,
  2. String publicString,
  3. String b64encoded, [
  4. String b64IV = "",
])

Decrypt data using self private key

Implementation

static String privateDecrypt(
    String privateString, String publicString, String b64encoded,
    [String b64IV = ""]) {
  Uint8List encdData = convert.base64.decode(b64encoded);
  final rawData =
      privateDecryptRaw(privateString, publicString, encdData, b64IV);
  convert.Utf8Decoder decode = const convert.Utf8Decoder();
  return decode.convert(rawData.toList());
}