hash static method

List<int> hash(
  1. List<int> data, [
  2. int digestLength = 32
])
override

Computes the SHA3 hash of the provided data.

Implementation

static List<int> hash(List<int> data, [int digestLength = 32]) {
  final h = SHA3(digestLength);
  h.update(data);
  final digest = h.digest();
  h.clean();
  return digest;
}