Nyxiontech PDF Tools › Protect PDF
How to password-protect a PDF
Send a contract, a scan of an ID or a set of payslips by e-mail and the file ends up sitting in a mailbox you do not control, usually for years. A password on the document itself is the one protection that travels with it. Setting one takes a minute. Working out what the three permission checkboxes actually prevent takes a little longer and is worth it, because two of them promise rather less than they appear to.
Two passwords, not one
The standard security handler defines a pair, and they do different jobs (ISO 32000-2, clause 7.6):
- The password decrypts the file. Without it the document does not open. This is the one you give the recipient.
- The owner password governs the permissions, and anyone holding it can lift them. It is optional here, and leaving it empty has a consequence worth knowing.
Leave Owner password blank and one is generated at random and never shown, to you or to anyone else. That is deliberate: were the two the same, everyone you sent the file to could remove the restrictions you had just set. The cost is that you cannot change those permissions later either. If that matters, set one and keep it.
The steps
- Open Protect PDF and add the file.
- Type the password into Password, then again into Repeat. Until the two match you will see "The passwords do not match." and the button stays disabled.
- Set Permissions. Allow printing starts ticked. Allow copying text and images and Allow editing and annotating start unticked.
- Fill in Owner password if you want to be able to change those permissions later, or leave it blank.
- Click Protect PDF. You get
yourfile_protected.pdf, encrypted with AES-256.
The password cannot be recovered afterwards, by you or by us, and the tool says so where you will see it: "Keep the password somewhere safe: it cannot be recovered." Put it somewhere before you send the file rather than after.
What the permissions really do
Here the honest answer is less impressive than the interface implies, and the hint under the checkboxes gives it: "Honoured by Adobe Reader, browsers and most viewers; some tools ignore them." Permissions are instructions to the reader, not locks on the data. A program that ignores them is not breaking anything, and some do.
- Two permissions are granted whatever you tick: filling in form fields, and access for assistive technology such as screen readers. Switching off copying and then finding a screen reader still reads the document aloud is the design working as intended.
- Allow editing and annotating covers three things at once: editing the content, adding comments, and reordering or extracting pages.
- When printing is allowed, it is allowed at full resolution. There is no print-at-draft-quality setting.
- The encryption is the part that genuinely holds. The restrictions are a convention between well behaved programs; the password is mathematics.
Where it will refuse, and what it will not fix
- An already encrypted file cannot be re-protected in one go. You will see "This PDF is already password-protected. Unlock it first." Send it through Unlock PDF first, as how to remove a password from a PDF describes.
- A password protects the file, not the message. Sending the password in the same e-mail as the attachment protects nobody. Use a different channel, a text message or a phone call.
- Encrypting a document does not clean out what is already inside it. Author names, the software that produced it and earlier revision traces all travel along, encrypted but intact: see how to check and remove hidden PDF metadata.
- If the document contains data that the recipient should not see at all, a password is the wrong instrument. Take it out with Redact PDF instead, because a password you have handed over protects nothing.
Nothing leaves the tab
Encrypting a document on someone else's server means handing them the document and the password together, which undoes the exercise before it starts. This runs entirely in your browser: the file is read locally, encrypted locally and handed back as a download. There is no server to receive it, and you can watch the network panel stay empty while it works, as how to check if a PDF tool uploads your files explains.