Skip to content

asHmacSha256

Module Export

(data: byte], key: [byte]) |> [byte]

Creates an HMAC-SHA256 signature from data and a secret key

Examples

import { asHmacSha256 } from 'crypt'
import { asBytes } from 'text'
from ('Hello World' asBytes, 'secret-key' asBytes) asHmacSha256