Options
All
  • Public
  • Public/Protected
  • All
Menu

Module hash

Functions

hashTextToNumber

  • hashTextToNumber(text: string): number
  • name

    hashTextToNumber

    description

    Hash text to number

    example

    hashTextToNumber("This is for you senpai 🍱") ➜ 854818604

    since

    0.0.78

    Parameters

    • text: string

      Text to be hashed

    Returns number

hashTextToShort

  • hashTextToShort(text: string): string
  • name

    hashTextToShort

    description

    Hash text to shorter version

    example

    hashTextToShort("This is for you senpai 🍱") ➜ "32f37f2c"

    since

    0.0.78

    Parameters

    • text: string

      Text to be hashed

    Returns string

Generated using TypeDoc