Modules
Objects/Functions
SuiteScript 2.0
crypto.Padding.{|NoPadding,PKCS5Padding|}
N/crypto Module
crypto.Padding
Enum Description:
Holds the string values for supported cipher padding. Sets the options.padding parameter for crypto.createCipher(options) and crypto.createDecipher(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.Padding
Example:
// Code Example 1
//Add additional code
//...
var cipher = crypto.createCipher({
algorithm: crypto.EncryptionAlg.AES,
key: sKey,
padding: crypto.Padding.NoPadding
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4358655564.html