Is this correct?
# suitescript
c
Is this correct?
b
looks okay
c
My assumption is the value that you enter into the “Password” field when defining the secret is what is returned when the key is referenced in the crypto.createHmac function. Is this correct?
b
depends on what you mean
if you mean in code, then no
at no point is the actual password returned
none of the crypto related functions actually return the password you entered
c
I probably could have worded that a little better. My understanding, is that when I reference the key here in the first line, NetSuite does it’s behind the scenes crypto magic to take the value that was entered into the password field to perform the encryption of the “signatureText” data in the second line. The third line then returns the base 64 encoding of the encrypted text.
b
thats correct
c
perfect, thank you so much!