The save() and update() operations need an optional encryption key parameter that they use to encrypt events.
The parameter is an object with the following fields: (encryptionKeyId, …)
The client is instantiated with an optional Encryption object that implements encrypt(encryptionKeyId, eventdata) and decrypt(encryptedEventData) operations.
The encrypted event is prefixed with the encryptionKeyId. This enables the find() and subscribe() operations to decrypt the events.
The save() and update() operations need an optional encryption key parameter that they use to encrypt events.
The parameter is an object with the following fields: (encryptionKeyId, …)
The client is instantiated with an optional Encryption object that implements encrypt(encryptionKeyId, eventdata) and decrypt(encryptedEventData) operations.
The encrypted event is prefixed with the encryptionKeyId. This enables the find() and subscribe() operations to decrypt the events.