Skip to content

PURISTA API


PURISTA API / @purista/amqpbridge / EncryptFunctions

Type Alias: EncryptFunctions

EncryptFunctions = object

Defined in: amqpbridge/src/types/EncryptFunctions.ts:4

Encrypt/decrypt contract for one content-encoding implementation.

Properties

decrypt()

decrypt: (input) => Promise<Buffer>

Defined in: amqpbridge/src/types/EncryptFunctions.ts:8

Decrypts a payload after it is received from AMQP.

Parameters

input

Buffer

Returns

Promise<Buffer>


encrypt()

encrypt: (input) => Promise<Buffer>

Defined in: amqpbridge/src/types/EncryptFunctions.ts:6

Encrypts a payload before it is sent to AMQP.

Parameters

input

Buffer

Returns

Promise<Buffer>