Skip to content

EncryptedAttachment

Defined in: bindings/wasm/dist/bindings_wasm.d.ts:290

Result of encrypting an attachment for remote storage.

contentDigest: string

Defined in: bindings/wasm/dist/bindings_wasm.d.ts:298

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


contentLength: number

Defined in: bindings/wasm/dist/bindings_wasm.d.ts:314

The length of the encrypted content


optional filename?: string

Defined in: bindings/wasm/dist/bindings_wasm.d.ts:318

The filename of the attachment


nonce: Uint8Array

Defined in: bindings/wasm/dist/bindings_wasm.d.ts:310

The 12-byte nonce used in encryption


payload: Uint8Array

Defined in: bindings/wasm/dist/bindings_wasm.d.ts:294

The encrypted bytes to upload to the remote server


salt: Uint8Array

Defined in: bindings/wasm/dist/bindings_wasm.d.ts:306

The 32-byte salt used in key derivation


secret: Uint8Array

Defined in: bindings/wasm/dist/bindings_wasm.d.ts:302

The 32-byte secret key needed for decryption