Decipher.update(options)

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Updates cipher data with the specified encoding.

Returns

void

Supported Script Types

Server scripts

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

Governance

None

Module

N/crypto Module

Since

2015.2

Parameters
Note:

The options parameter is a JavaScript object.

Parameter

Type

Required / Optional

Description

options.input

string

required

The data to update.

options.inputEncoding

string

optional

Specifies the encoding of the input data.

Use the encode.Encoding enum to set the value.

The default value is encode.Encoding.HEX.

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 
...
var decipher1 = Decipher.update({
    input: '73616d706c65737472696e67',
    inputEncoding: encode.Encoding.UTF_8
});
...
//Add additional code 

        

Related Topics

crypto.Decipher
N/crypto Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices