md5 method

Future<String?> md5()

Computes the MD5 hash of the byte array.

Implementation

Future<String?> md5() async {
  try {
    return await crypto.md5
        .bind(asStream())
        .first
        .then((digest) => digest.toString());
  } on Exception catch (e) {
    Fimber.e("ERROR when computing md5", ex: e);
    return null;
  }
}