hash static method

Uint8List hash(
  1. Uint8List value, {
  2. Uint8List? key,
  3. int? outlen,
})
override

Computes a generic hash of specified length for given value and optional key.

Implementation

static Uint8List hash(Uint8List value, {Uint8List? key, int? outlen}) {
  outlen ??= Sodium.cryptoGenerichashBytes;
  return Sodium.cryptoGenerichash(outlen, value, key);
}