pandoraDecrypt function
Decrypts a request/response with the given decrypter
.
Implementation
String pandoraDecrypt(
String data,
Converter<String, Uint8List> decrypter, [
int drop = 0,
]) {
final decryptedData = decrypter.convert(data);
return utf8.decode(
decryptedData.sublist(
drop,
decryptedData.length - getPKCS5PadCount(decryptedData),
),
);
}