Crypto SDK
    Preparing search index...

    Interface MacResult

    Result of POST /v2/hmac.

    const { data } = await client.mac({ algorithm: 'sha256', key: hexKey, data: 'hello' });
    const result: MacResult = data;
    console.log(result.mac, result.algorithm);
    interface MacResult {
        mac: string;
        algorithm: string;
    }
    Index
    mac: string

    Hex-encoded MAC tag.

    algorithm: string

    HMAC hash function used (e.g. "sha256").