encrypt method

Encrypted encrypt(
  1. String input, {
  2. IV? iv,
  3. Uint8List? associatedData,
})

Calls encrypt on the wrapped Algorithm.

Implementation

Encrypted encrypt(
  String input, {
  IV? iv,
  Uint8List? associatedData,
}) {
  return encryptBytes(
    convert.utf8.encode(input),
    iv: iv,
    associatedData: associatedData,
  );
}