UMIS SDK
    Preparing search index...

    Function computeDigestResponse

    • The response value of an HTTP Digest Authorization header with SHA-256 and qop=auth (RFC 7616, section 3.4.1): H(H(username:realm:password) : nonce : nc : cnonce : qop : H(method:uri)) in lowercase hexadecimal. This is how Shelly Gen2 and newer devices ask a client to prove a password. The password is only ever an argument here: nothing in this module stores, logs or returns it.

      Parameters

      • i: {
            cnonce: string;
            crypto?: CryptoProvider;
            method: string;
            nc: string;
            nonce: string;
            password: string;
            qop: "auth";
            realm: string;
            uri: string;
            username: string;
        }

      Returns Promise<string>