traveler.core.hashing.hex_hash#

traveler.core.hashing.hex_hash(inputs, *args, length=20)[source]#

Hashes a string to a hexadecimal string.

Parameters:
  • inputs (str or list[str]) – The string to hash.

  • length (int, optional) – The length of the resulting hexadecimal string, by default 20.

Returns:

A hexadecimal string representing the hash of the input.

Return type:

str