Trying to figure out how to get N/crypto module to...
# suitescript
e
Trying to figure out how to get N/crypto module to work. Ran the example in Help but it keeps giving me an error. Anyone have any working examples? I basically just need to generate a signature for Amazon MWS. We have one working in SS 1.0 but need to convert that to SS 2.0 code.
g
What's the error? Are you running it server side?
e
I basically took the code from help and ran it in the debugger. So yeah it is running server side. Error message is {“type”“error.SuiteScriptError”,“name”“AN_ERROR_OCCURRED_WHILE_DECRYPT_PASSWORDGUID”,“message”:“An error occurred while decrypting a credential.“,”stack”:[“createError(N/error.js)“,”createSecureKeyWithHash(adhoc$-1$debugger.user:18)
r
Do you have the code for generating the passwordguid