Skip to content

Instantly share code, notes, and snippets.

View mairh's full-sized avatar
🎯
Focusing

Ujjwal Mairh mairh

🎯
Focusing
  • Helsinki
View GitHub Profile
@mairh
mairh / easymedi-hmac-generation.ts
Created February 12, 2024 14:29
EM3.Example of creating HMAC
const secretKey: string = "xxxxx";
const kela: string = "0123";
const timestamp: number = new Date().getTime();
const cryptoHmac: string = crypto.createHmac('sha256', secretKey).update(`${kela}:${timestamp}`).digest('hex');