Modules
Objects/Functions
SuiteScript 2.0
crypto.EncryptionAlg.{|AES|}
N/crypto Module
crypto.EncryptionAlg
Enum Description:
Holds the string values for supported encryption algorithms. Sets the options.algorithm parameter for crypto.createCipher(options).
JavaScript does not include an enumeration type. The SuiteScript 2.0 documentation utilizes the term enumeration (or enum) to describe the following: a plain JavaScript object with a flat, map-like structure. Within this object, each key points to a read-only string value.
Module:
N/crypto Module
Supported Script Types:
All server-side scripts
For additional information, see SuiteScript 2.0 Script Types.
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=crypto.EncryptionAlg
Example:
// Code Example 1
//Add additional code
//...
var cipher = crypto.createCipher({
algorithm: crypto.EncryptionAlg.AES,
key: sKey
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4358655796.html