Modules

filter

 

Objects/Functions

module (N/https)

SuiteScript 2.0

SecureString.hmac(options)

{SecureString}.hmac({algorithm: {https.HashAlg*},key: {crypto.SecretKey*}})

N/https Module
SecureString.hmac()
Method Description: Creates an hmac for a https.SecureString. The https.HashAlg enum is used to set the hash algorithm.
Returns: https.SecureString
Supported Script Types: Server scripts For more information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/https Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=SecureString.hmac(options)

Example:

// Code Example 1
// Add additional code
//...
var secureString1 = https.createSecureString({
input: "myString1"
});
var hmacString1 = secureString1.hmac({
algorithm: crypto.HashAlg.SHA256,
key: mySecretKey
});
//...
// Add additional code

//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_459579406737.html