pandoraEncrypt function Null safety

String pandoraEncrypt(
  1. String data,
  2. Converter<List<int>, String> encrypter
)

Encrypts a request/response with the given encrypter.

Implementation

String pandoraEncrypt(
  String data,
  Converter<List<int>, String> encrypter,
) =>
    encrypter.convert(padPKCS5(utf8.encode(data)));