# OdfEncryptionOptions

Configures interoperable password encryption for an OpenDocument package.

Class 

`OfficeIMO.OpenDocument`

**Namespace**

`OfficeIMO.OpenDocument`

**Assembly**

`OfficeIMO.OpenDocument`

**Source revision**

`5e5a2dda74b3` with working tree changes

**Source**

[OdfEncryptionOptions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.OpenDocument/Security/OdfEncryptionOptions.cs#L7)

**Modifiers**

sealed

Configures interoperable password encryption for an OpenDocument package.

## Inheritance

- object
- OdfEncryptionOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Create and Read ODT, ODS and ODP Files](/docs/open-document/create-read/) Guide
  
  Create OpenDocument text, spreadsheet and presentation files, read their content, edit them in place, and open password-protected files.

## Usage

Explore 1 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 1

- Property [OdfSaveOptions.Encryption](/api/open-document/officeimo-opendocument-odfsaveoptions/#property-encryption)

Filter members 

Show inherited

## Constructors

`public OdfEncryptionOptions()` [#](#constructor-ctor)

[OdfEncryptionOptions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.OpenDocument/Security/OdfEncryptionOptions.cs#L7)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Password { get; set; }` [#](#property-password)

[OdfEncryptionOptions.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.OpenDocument/Security/OdfEncryptionOptions.cs#L7)

Password used to encrypt the output package.

`public int IterationCount { get; set; }` [#](#property-iterationcount)

[OdfEncryptionOptions.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/5e5a2dda74b33242f1f075718ee568bb355c03ba/OfficeIMO.OpenDocument/Security/OdfEncryptionOptions.cs#L11)

PBKDF2-HMAC-SHA1 iteration count applied independently to each encrypted entry.

<!-- PowerForge markdown artifact sha256:14158F3B945B2AA082C24CB36B1CCB68587599682888A63102C3E2A876B22C15 -->
