Computes the SHA-256 hash of the provided data.
static List<int> hash(List<int> data) { final h = SHA256(); h.update(data); final digest = h.digest(); h.clean(); return digest; }