EncryptedAttachment
Defined in: bindings/node/dist/index.d.ts:808
Result of encrypting an attachment for remote storage.
Properties
Section titled “Properties”contentDigest
Section titled “contentDigest”contentDigest:
string
Defined in: bindings/node/dist/index.d.ts:812
SHA-256 digest of the encrypted bytes (hex-encoded)
contentLength
Section titled “contentLength”contentLength:
number
Defined in: bindings/node/dist/index.d.ts:820
The length of the encrypted content
filename?
Section titled “filename?”
optionalfilename?: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
Section titled “payload”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
Section titled “secret”secret:
Uint8Array
Defined in: bindings/node/dist/index.d.ts:814
The 32-byte secret key needed for decryption

