You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this can make correct expected signature code as above,
to convert this HMAC_SHA256 to WebCrypto API, I found this code snippet, I am passing the secret as a string but can't make exact same output, so I see the difference is here crypto-js is converting secret input with CryptoJS.enc.Base64.parse(secret) which gets a WordArray,
Not sure how does this WordArray map to a Uint8Array expected by WebCrypto API?
I'm getting a piece of legacy code which was using this crypto-js but new project is using all WebCrypto API,
this can make correct expected signature code as above,
to convert this HMAC_SHA256 to WebCrypto API, I found this code snippet, I am passing the secret as a string but can't make exact same output, so I see the difference is here crypto-js is converting secret input with
CryptoJS.enc.Base64.parse(secret)
which gets a WordArray,Not sure how does this WordArray map to a Uint8Array expected by WebCrypto API?
https://stackoverflow.com/a/67744336
Thanks,
The text was updated successfully, but these errors were encountered: