Crypto SDK
    Preparing search index...

    Interface MacResult

    Result of a MAC computation.

    const { data } = await client.mac({ algorithm: 'hmac-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

    MAC algorithm used (e.g. "hmac-sha256").