# Encryption

Encryption defines the PDF file encryption information and document rights management options. A watermark is a recognizable image or text pattern that appears superimposed on a generated PDF output. In the DocServicesAPI, watermarks are implemented as a post-processing event submitted on a request in the AncillaryOutputOptions object and defined through a single object, SetEncryption, containing three object to define the encryption strength, passwords, and permissions to associate with the encrypted document.

- Strength128Bits: A boolean defining if the document is marked for encryption as 128-bit encrypted. A TRUE value indicates the document is marked for 128-bit encryption; a FALSE value indicates it is marked for 40-bit encryption.
- Passwords: Object containing the user and owner to submit on a request.
- Permissions: Object defining rights to associated with the user/owner submitted on the request.