@iocium/domhash - v0.2.0
    Preparing search index...

    Function hashStructure

    • Hash a canonical structure string.

      Parameters

      • input: string

        Canonical string to hash

      • algo: "sha256" | "murmur3" | "blake3" | "simhash" | "minhash" = 'sha256'

        Hash algorithm. sha256 and blake3 are cryptographic and safe for security-sensitive comparisons. murmur3, simhash, and minhash are fast 32-bit NON-CRYPTOGRAPHIC hashes intended for perceptual similarity only: an attacker can search for colliding input in ~2^32 attempts, so never rely on them to authenticate or compare security-sensitive content.

      Returns Promise<string>

      Promise resolving to the hex hash string