getCiphertext method

Uint8List getCiphertext(
  1. Uint8List key,
  2. Uint8List message
)

Implementation

Uint8List getCiphertext(Uint8List key, Uint8List message) {
  final iv = Uint8List(16);
  final m = aesCbcEncrypt(key, iv, message);
  return Uint8List.fromList(iv + m);
}