Skip to Content
Jun 20, 2020 at 05:35 AM

HMAC-SHA256 conversion in SAP PO and then conversion into Base 64


Dear Experts,

Need help on converting an storage key into - HMAC-SHA 256 and then convert it into Base #64 in SAP PO .

I have postman project - which is doing this in JSON , i need it's equivalent way to do in SAP PO.

Below is the piece of code from Postman Project -

"// Hash it using HMAC-SHA256 and then encode using base64", "const storageKey = pm.variables.get(\"azure_storage_key\");", "const signatureBytes = crypto.HmacSHA256(signatureRaw, crypto.enc.Base64.parse(storageKey));", "const signatureEncoded = signatureBytes.toString(crypto.enc.Base64);",