Skip to content

HMAC Authentication v1Integrasi Aman dengan Sistem Eksternal

Request signing dengan HMAC-SHA256 untuk integritas dan autentikasi API

Quick Example

ts
const signature = generateHMAC({
  method: "POST",
  path: "/api/data",
  headers: {
    "x-date": "2026-03-16T08:30:12Z",
    "x-request-id": "bf6c5652-9656-4167-b1d4-10c690a72102",
    "x-client-type": "service"
  },
  body: '{"message":"Hello"}',
  secretKey: "your-secret-key"
});