Skip to content

EncryptedAttachment

Defined in: bindings/node/dist/index.d.ts:808

Result of encrypting an attachment for remote storage.

contentDigest: string

Defined in: bindings/node/dist/index.d.ts:812

SHA-256 digest of the encrypted bytes (hex-encoded)


contentLength: number

Defined in: bindings/node/dist/index.d.ts:820

The length of the encrypted content


optional filename?: string

Defined in: bindings/node/dist/index.d.ts:822

The filename of the attachment


nonce: Uint8Array

Defined in: bindings/node/dist/index.d.ts:818

The 12-byte nonce used in encryption


payload: Uint8Array

Defined in: bindings/node/dist/index.d.ts:810

The encrypted bytes to upload to the remote server


salt: Uint8Array

Defined in: bindings/node/dist/index.d.ts:816

The 32-byte salt used in key derivation


secret: Uint8Array

Defined in: bindings/node/dist/index.d.ts:814

The 32-byte secret key needed for decryption