encrypt method

String encrypt(
  1. String plainText
)

Implementation

String encrypt(String plainText) {
  _cipher
    ..reset()
    ..init(true, _params);

  final input = Uint8List.fromList(plainText.codeUnits);
  final output = _cipher.process(input);

  return HEX.encode(output);
}