# PdfStandardEncryptionAlgorithm

Standard password-security algorithms supported for PDF output.

Enum 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfStandardEncryptionAlgorithm.cs:4](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfStandardEncryptionAlgorithm.cs#L4)

**Base**

`Enum`

**Implements**

`IComparable` `ISpanFormattable` `IFormattable` `IConvertible`

**Modifiers**

sealed

Standard password-security algorithms supported for PDF output.

## Inheritance

- Enum
- PdfStandardEncryptionAlgorithm

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Protect a PDF with AES-256 passwords](/pdf/protect/) Guide
  
  Encrypt a PDF with AES-256 Standard security, set document-open and owner passwords, and review preservation evidence for the protected copy.

## Usage

Explore 4 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 4

- Field [PdfStandardEncryptionAlgorithm.Aes128](/api/pdf/officeimo-pdf-pdfstandardencryptionalgorithm/#field-aes128)
- Field [PdfStandardEncryptionAlgorithm.Aes256](/api/pdf/officeimo-pdf-pdfstandardencryptionalgorithm/#field-aes256)
- Field [PdfStandardEncryptionAlgorithm.LegacyRc4](/api/pdf/officeimo-pdf-pdfstandardencryptionalgorithm/#field-legacyrc4)
- Property [PdfStandardEncryptionOptions.Algorithm](/api/pdf/officeimo-pdf-pdfstandardencryptionoptions/#property-algorithm)

Filter members 

Show inherited

## Inherited Methods

`public int CompareTo(object? target)` [#](#method-compareto-object)

Inherited from Enum

Parameters

**target object? required**

Returns

`int`

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

Inherited from Enum

Parameters

**obj object? required**

Returns

`bool`

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

Inherited from Enum

Returns

`int`

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

Inherited from object

Returns

`Type`

`public TypeCode GetTypeCode()` [#](#method-gettypecode)

Inherited from Enum

Returns

`TypeCode`

`public bool HasFlag(Enum flag)` [#](#method-hasflag-enum)

Inherited from Enum

Parameters

**flag Enum required**

Returns

`bool`

ToString 4 overloads

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

Inherited from Enum

Returns

`string`

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

Inherited from Enum

Parameters

**format string? required**

Returns

`string`

`public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString() instead.")`

Parameters

**provider IFormatProvider? required**

Returns

`string`

`public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider)

Inherited from Enum

`Obsolete("The provider argument is not used. Use ToString(String) instead.")`

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

`string`

## Values

`public const PdfStandardEncryptionAlgorithm Aes256` [#](#field-aes256)

[PdfStandardEncryptionAlgorithm.cs:6](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfStandardEncryptionAlgorithm.cs#L6)

AES-256 with Standard security handler revision 6 and AESV3 crypt filters.

Value: `0`

`public const PdfStandardEncryptionAlgorithm Aes128` [#](#field-aes128)

[PdfStandardEncryptionAlgorithm.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfStandardEncryptionAlgorithm.cs#L9)

AES-128 with Standard security handler revision 4 and AESV2 crypt filters.

Value: `1`

`public const PdfStandardEncryptionAlgorithm LegacyRc4` [#](#field-legacyrc4)

[PdfStandardEncryptionAlgorithm.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfStandardEncryptionAlgorithm.cs#L12)

Legacy RC4-128 with Standard security handler revision 3.

Value: `2`

<!-- PowerForge markdown artifact sha256:CCF3832C3C6B9C2AE95234B5E382BA4EAF2A324414DADFF6F90C571AAFFC33C0 -->
