Modules

filter

 

Objects/Functions

module (N/crypto)

SuiteScript 2.0

crypto.createCipher(options)

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

N/crypto Module
crypto.createCipher()
Method Description: Method used to create and return a crypto.EncryptionAlg object. The blockCipherMode is automatically set to CBC.
Returns: A crypto.EncryptionAlg 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.createCipher(options)

Example:

// Code Example 1
//Add additional code
//...
var cipher = crypto.createCipher({
algorithm: crypto.EncryptionAlg.AES,
key: sKey,
padding: crypto.Padding.PKCS5Padding
});
//...
//Add additional code

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