Modules
Objects/Functions
SuiteScript 2.0
{Hash}.digest({outputEncoding: {string}})
N/crypto Module
Hash.digest()
Method Description:
Calculates the digest of the data to be hashed.
Returns:
A hash value as a string
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=Hash.digest(options)
Example:
// Code Example 1
//Add additional code
//...
var digestSample = hashObj.digest({
outputEncoding: encode.Encoding.HEX
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_456370178222.html