Modules

filter

 

Objects/Functions

module (N/crypto)

SuiteScript 2.0

crypto.createHmac(options)

{crypto}.createHmac({algorithm: {string*},key: {object*}})

N/crypto Module
crypto.createHmac()
Method Description: Method used to create a crypto.Hmac object.
Returns: A crypto.Hmac object.
Supported Script Types: Server-side scripts For additional information, see SuiteScript 2.0 Script Types.
Governance: None
Module: N/crypto Module
Since: 2015.2
Search NetSuite - https://system.netsuite.com/app/help/helpcenter.nl?search=crypto.createHmac(options)

Example:

// Code Example 1
//Add additional code
//...
var hmacObj = crypto.createHmac({
algorithm: HashAlg.SHA256,
key: sKey
});
//...
//Add additional code

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