sha1DigestAsBytes method

List<int> sha1DigestAsBytes(
  1. String path
)

Get the SHA1 digest of a supplied absolute file path as a list of bytes. Returns the digest or empty if it could not be calculated.

Implementation

List<int> sha1DigestAsBytes(String path) {
  final digest = _sha1Digest(path);

  return digest == null ? <int>[] : digest.bytes;
}