Modules
Objects/Functions
SuiteScript 2.0
{Cipher}.final({outputEncoding: {enum}})
N/crypto Module
Cipher.final()
Method Description:
Method used to return the cipher data.
Sets the output encoding for the crypto.CipherPayload object.
Returns:
A crypto.CipherPayload Object
Supported Script Types:
Server-side scripts
For additional information, see SuiteScript 2.0 Script Types.
Governance:
None
Module:
N/crypto Module
Since:
2015.2
Search NetSuite -
https://system.netsuite.com/app/help/helpcenter.nl?search=Cipher.final(options)
Example:
// Code Example 1
//Add additional code
//...
crypto.createCipher({
algorithm: crypto.EncryptionAlg.AES,
key: sKey
});
var cipherPayload = cipher.final({
outputEncoding: encode.Encoding.BASE_64
});
//...
//Add additional code
//SOURCE: https://system.netsuite.com/app/help/helpcenter.nl?fid=section_454422851562.html