We have used below code for HMAC but getting error as 256 bit require in datap[ower
as per client requirement key should be "TEIFHEW" but same is working online js complier but on datapower not working .
const crypto = require('crypto');
const secret = Buffer.from('TEIFHEW');
// Calling createHmac method
const hash = crypto.createHmac('sha256', secret).update('mayur').digest('base64');
session.output.write(hash)
// Displays output
console.log(hash);
------------------------------
mayur gharat
------------------------------