Hmac.update(options)

Method Description

Updates the clear data with the encoding specified.

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 hmac data to be updated.

options.inputEncoding

enum

optional

The input encoding. Use the encode.Encoding enum to set the value.

The default value is encode.Encoding.UTF_8.

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 
...
hmacSHA512.update({
    input: inputString,
    inputEncoding: encode.Encoding.BASE_64
});
...
//Add additional code 

        

Related Topics

General Notices