xxh128sum function

String xxh128sum(
  1. String input, [
  2. Encoding? encoding
])

Gets the 128-bit XXH3 hash of a String in hexadecimal.

Parameters:

  • input is the string to hash
  • The encoding is the encoding to use. Default is input.codeUnits

Implementation

String xxh128sum(String input, [Encoding? encoding]) {
  return xxh128.string(input, encoding).hex();
}