crypto.CipherPayload

Object Description

Encapsulates a cipher payload.

For a complete list of this object’s methods and properties, see CipherPayload Object Members.

Supported Script Types

Server scripts

For additional information, see SuiteScript 2.x Script Types.

Module

N/crypto Module

Since

2015.2

Syntax
Important:

The following code sample shows the syntax for this member. It is not a functional example. For a complete script example, see N/crypto Module Script Samples.

          //Add additional code 
...
myCipher = crypto.createCipher({
    algorithm: crypto.EncryptionAlg.AES,
    key: sKey
});

var cipherPayload = myCipher.final({  // cipherPayload is a crypto.CipherPayload object
    outputEncoding: encode.Encoding.HEX
});
...
//Add additional code 

        

Related Topics

General Notices