SecretKey.secret

Property Description

The script ID of an API secret. For more information, see Secrets Management.

Type

string

Module

N/crypto Module

Since

2021.1

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 sKey = crypto.createSecretKey({
    secret: 'custsecret_sample',
    encoding: encode.Encoding.UTF_8
});
log.debug({
    title: 'Secret ID',
    details: sKey.secret
});
...

//Add additional code 

        

Related Topics

General Notices