Security

edit
ToUsePage
Require a password to open a document, or restrict printing and copyingPdfDocument.EncryptionEncryption
Encrypt a document for the certificates of its recipientsPdfEncryptionRecipientEncryption
Open an encrypted documentPdfReadOptions.Password, PdfReadOptions.CertificateEncryption
Embed an encrypted document in a document that every reader opensPdfDocument.SetEncryptedPayloadUnencrypted wrapper documents
Prove who approved a document, and that it did not change sincePdfSignerDigital signatures
Check the signatures of a documentPdfSignatureVerifierDigital signatures
Remove sensitive text, graphics and images from areas of a pagePdfPage.RedactRedaction

Encryption and signatures protect different things. Encryption hides the content from those who do not have the password or the private key of a recipient; its permissions are honored by the readers, not enforced by the file. A signature does not hide anything: it proves that the signed bytes did not change, and binds them to the certificate of the signer, whom the application must decide to trust.

In this section

  • Encryption: passwords or certificates, algorithms and permissions, and how to remove or change them.
  • Unencrypted wrapper documents: an encrypted document embedded in a document that is not encrypted.
  • Digital signatures: PAdES signatures and time stamps, and their verification.
  • Redaction: remove what a page shows in areas, so that the saved file does not contain it.