pgp.CompressionAlgorithm

Note:

The content in this help topic pertains to SuiteScript 2.1.

Enum Description

Holds the values for available compression algorithms. Use this enum to set the value of the options.compressionAlgorithm parameter of the MessageData.encrypt(options) method.

Module

N/pgp Module

Sibling Module Members

N/pgp Module Members

Since

2022.2

Values

Value

ZLIB

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/pgp Module Script Samples.

            // Add additional code
...

const msgData = pgp.createMessageData({ content: 'hello world' })
msgData.encrypt({
   encryptionKeys: [ keys.alice.pub, keys.bob.pub, keys.carol.pub ],
   signingKeys: [ keys.netsuite.pri, keys.oracle.pri ],
   compressionAlgorithm: pgp.CompressionAlgorithm.ZLIB
})

...
// Add additional code 

          

General Notices