hash static method

List<int> hash(
  1. List<int> data
)
override

Computes the SHA-256 hash of the provided data.

Implementation

static List<int> hash(List<int> data) {
  final h = SHA256();
  h.update(data);
  final digest = h.digest();
  h.clean();
  return digest;
}