@juriskop/swish-node-digest-auth
Version:
A SWISH compatible digest auth. While digest auth is standardized this implementation is only tested against SWISH and only supports one specification case (qop = auth; MD5 hash)
7 lines (6 loc) • 529 B
TypeScript
export declare const getNonceFromMessageString: (message: string) => string;
export declare const getRealmFromMessageString: (message: string) => string;
export declare const generateHA1: (username: string, realm: string, password: string) => string;
export declare const generateHA2: (method: string, digestURI: string) => string;
export declare const generateResponse: (ha1: string, ha2: string, nonce: string, nonceCount: number, cNonce: string, qop: string) => string;
export declare const generateClientNonce: () => string;