How to Protect a PDF with a Password: Complete Guide
PDF password protection prevents unauthorized users from opening, copying, printing, or modifying your document. Whether you are sending a confidential contract, distributing an exam paper, or securing an archived report, adding a password is the most direct way to control who can access it.
How the Encryption Works
When you click Protect, your PDF is securely transmitted to our server over HTTPS. We use qpdf, a professional-grade PDF processing library trusted in enterprise and government environments, to apply 256-bit AES encryption. The encrypted file is immediately returned to your browser and downloaded. We never write your file to disk — the operation happens entirely in memory and the data is cleared as soon as the response is delivered.
User Password vs. Owner Password
In the PDF specification, the user password is required to open the document, and the owner password controls permissions (printing, copying, modifying). This tool sets both to the same value for simplicity. If you need separate user and owner passwords for fine-grained control, use a desktop tool like Adobe Acrobat.
PDF Permission Flags
Beyond just requiring a password to open, PDF encryption includes permission flags that restrict what authenticated users can do:
- Allow Printing: Controls whether the document can be printed.
- Allow Copying: Controls whether text can be selected and copied.
- Allow Modification: Controls whether the document can be edited or annotated.
These restrictions are enforced by compliant PDF viewers including Adobe Acrobat, Preview, and browser-based PDF viewers.
Is the Transmission Secure?
Yes. All data transferred between your browser and our server uses HTTPS with TLS. Your file and password are encrypted in transit and are never accessible over an unencrypted connection. We do not log file contents, passwords, or user activity.