iya-sts
    Preparing search index...

    Variable sha1Digest

    sha1Digest: (purpose: any, data: any, encoding: any) => any = sha1Digest

    Type Declaration

      • (purpose: any, data: any, encoding: any): any
      • Returns the SHA-1 of a value, for one of the purposes a specification fixes it for.

        Parameters

        • purpose: any

          a key of SHA1_PURPOSES

        • data: any

          the bytes, or a string read as UTF-8

        • encoding: any

          hex, base64 or base64url; a Buffer when absent

        Returns any

        the digest

        Error for a purpose not in the list