Skip to content

Function: hash()

hash(str): string

Defined in: hash.ts:17

Creates a simple 3-character hash of a string using a basic multiplication-based algorithm.

Parameters

str

string

The string to be hashed.

Returns

string

  • A 3-character base-36 string representing the hash of the input string.

Released under the MIT License.