Modules
Objects/Functions
SuiteScript 2.0
{https}.createSecureKey({guid: {string*},encoding: {https.Encoding}})
N/https Module
https.createSecureKey()
Method Description:
Creates and returns a crypto.SecretKey Object. This method can take a GUID. Use Form.addCredentialField(options) to generate a value.
You can put the key in your secure string. SuiteScript decrypts the value (key) and sends it to the server
Returns:
crypto.SecretKey
Supported Script Types:
Server scripts
For more information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/https Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=https.createSecureKey(options)
Example:
// Code Example 1
// Add additional code
//...
var secretKey = https.createSecretKey({
encoding: https.Encoding.HEX,
guid: '284CFB2D225B1D76FB94D150207E49DF'
});
//...
// Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_4418247967.html