ChemPare Documentation - v0.0.0
    Preparing search index...

    Function generateSimpleHash

    • Generates a simple hash from a string using the djb2 algorithm. This is a non-cryptographic hash function suitable for request identification.

      Parameters

      • str: string

        The string to hash

      Returns string

      A hexadecimal string representing the hash

      const hash = generateSimpleHash("test string");
      console.log(hash); // "a5d7d2a9"