decrypt method

Future<String> decrypt({
  1. required Uint8List imageBytes,
})

Extracts and decrypts hidden data from imageBytes as UTF-8 text.

method and cipher must match the values used when encrypt was called.

Implementation

Future<String> decrypt({
  required Uint8List imageBytes,
}) async {
  _ensureActive();
  final bytes = await _engine.extract(
    imageBytes: imageBytes,
    key: _key,
    method: method,
  );
  return utf8.decode(bytes);
}