UNPKG

@azure/core-util

Version:
14 lines 718 B
/** * Generates a SHA-256 HMAC signature. * @param key - The HMAC key represented as a base64 string, used to generate the cryptographic HMAC hash. * @param stringToSign - The data to be signed. * @param encoding - The textual encoding to use for the returned HMAC digest. */ export declare function computeSha256Hmac(key: string, stringToSign: string, encoding: "base64" | "hex"): Promise<string>; /** * Generates a SHA-256 hash. * @param content - The data to be included in the hash. * @param encoding - The textual encoding to use for the returned hash. */ export declare function computeSha256Hash(content: string, encoding: "base64" | "hex"): Promise<string>; //# sourceMappingURL=sha256.common.d.ts.map