Hi everyone, I'm trying to translate the function ...
# general
r
Hi everyone, I'm trying to translate the function below from Javascript to Netsuite using N/crypto, as a way to hmac some strings I need in an Amazon request algorithm:
function hmac(message, key) {
return CryptoJS.HmacSHA256(message, key);
}
Is there some direct way to do that? I have found this post in Stackoverflow but I think it could be a better way... Any help will be appreciated...
s
r
Hi @Selcuk Dogru. I'll check it. Thanks for your help...
s
In addition, CryptoJS works in NS last I checked.