---
title: "EncryptionOptions"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/type-aliases/encryptionoptions/"
---

# EncryptionOptions

```ts
type EncryptionOptions = SetEncryptionJs;
```

Defined in: [packages/sdk/src/types.ts:1632](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/types.ts#L1632)

The passwords and limits for [Document.setEncryption](/reference/sdk/classes/document.md#setencryption): `user` (opens the file), `owner`
(lifts the limits; left empty, the save makes one and reports it), `permissions` and
`encryptMetadata` (default true). Give at least one password. The passwords stay in memory:
they are never in an op log, an error or a crash report.

## Since

0.7.0
