Modules
Objects/Functions
SuiteScript 2.0
{SecureString}.hash({algorithm: {https.HashAlg*}})
N/https Module
SecureString.hash()
Method Description:
Creates a hash 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.hash(options)
Example:
// Code Example 1
// Add additional code
//...
var secureString1 = https.createSecureString({
input: "myString1"
});
var hashString1 = secureString1.hash({
algorithm: crypto.HashAlg.SHA256
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_459472900389.html