**Inheritance:**
java.lang.Object, java.lang.Enum
```
public enum PdfEncryptionAlgorithm extends Enum<PdfEncryptionAlgorithm>
```

Encryption mode enumeration. Describes algorithm and key length.
## Fields

| Field | Description |
| --- | --- |
| [RC4_40](#RC4-40) | Algorithm, with an RC4 encryption key length of 40 bits; |
| [RC4_128](#RC4-128) | Algorithm, with an RC4 encryption key length of 128 bits and advanced permission set; |
## Methods

| Method | Description |
| --- | --- |
| [values()](#values--) |  |
| [valueOf(String name)](#valueOf-java.lang.String-) |  |
### RC4_40 {#RC4-40}
```
public static final PdfEncryptionAlgorithm RC4_40
```


Algorithm, with an RC4 encryption key length of 40 bits;

### RC4_128 {#RC4-128}
```
public static final PdfEncryptionAlgorithm RC4_128
```


Algorithm, with an RC4 encryption key length of 128 bits and advanced permission set;

### values() {#values--}
```
public static PdfEncryptionAlgorithm[] values()
```




**Returns:**
com.aspose.tex.rendering.PdfEncryptionAlgorithm[]
### valueOf(String name) {#valueOf-java.lang.String-}
```
public static PdfEncryptionAlgorithm valueOf(String name)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| name | java.lang.String |  |

**Returns:**
[PdfEncryptionAlgorithm](../../com.aspose.tex.rendering/pdfencryptionalgorithm)
