Checks if the given string is a valid hash for the specified algorithm.

  • Parameters

    • value: string

      The string to validate.

    • algorithm:
          | "md4"
          | "md5"
          | "sha1"
          | "sha256"
          | "sha384"
          | "sha512"
          | "ripemd128"
          | "ripemd160"
          | "tiger128"
          | "tiger160"
          | "tiger192"
          | "crc32"
          | "crc32b"

      The hash algorithm to check against.

    Returns boolean

    True if the string is a valid hash for the specified algorithm, false otherwise.