hash static method
Computes the BLAKE2b hash of the given input data.
Parameters:
data: The input data to be hashed.digestLength: The length of the hash digest in bytes (default is 64 bytes).config: Optional configuration for BLAKE2b (e.g., key, salt, personalization).
Implementation
static List<int> hash(
List<int> data, [
int digestLength = 64,
Blake2bConfig? config,
]) {
final h = BLAKE2b(digestLength: digestLength, config: config);
h.update(data);
final digest = h.digest();
h.clean();
return digest;
}