---
Product: Aspose.PDF
Platform: go
Page Type: reference
Canonical URL: https://reference.aspose.org/pdf/go/encryptionoptions
---

# EncryptionOptions

## Overview

`EncryptionOptions` is a type in Aspose.PDF FOSS for Go.

EncryptionOptions bundles every knob that controls how a document is encrypted when saved.

Properties: `Algorithm`, `OwnerPassword`, `Permissions`, `UserPassword`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `UserPassword` | `string` | Read/Write | Gets the user password. |
| `OwnerPassword` | `string` | Read/Write | Gets the owner password. |
| `Permissions` | `*Permissions` | Read/Write | Gets the permissions. |
| `Algorithm` | `EncryptionAlgorithm` | Read/Write | Gets the algorithm. |

## See Also

- [Aspose.PDF — Enterprise API Reference](https://reference.aspose.com/pdf/)