## ICustomSecurityHandler.EncryptPermissions method

Encrypt the document's permissions field. The result will be written to the Perms encryption dictionary field. When opening a document, the value can be obtained in [`EncryptionParameters`](../../encryptionparameters/) via the Perms field. Allows you to check if the document permissions have changed.

```csharp
public byte[] EncryptPermissions(int permissions)
```

| Parameter | Type | Description |
| --- | --- | --- |
| permissions | Int32 | The document permissions in integer representation. |

### Return Value

The encrypted array.

### See Also

* interface [ICustomSecurityHandler](../)
* namespace [Aspose.Pdf.Security](../../../aspose.pdf.security/)
* assembly [Aspose.PDF](../../../)


