참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
data using the key key with the underlying algo used for compression.
Parameters
Returns
string
The HMAC of the data.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
참고: 이 페이지는 아직 한국어로 번역되지 않았습니다. 아래는 영어 원문입니다.
function computeHmac(
algorithm,
_key,
_data): string
data using the key key with the underlying algo used for compression.
string
The HMAC of the data.
key = id('some-secret');
// Compute the HMAC
computeHmac('sha256', key, '0x1337');
// To compute the HMAC of UTF-8 data, the data must be
// converted to UTF-8 bytes
computeHmac('sha256', key, toUtf8Bytes('Hello World'));
