PDF passwords explained: user vs owner password, and what 'restrictions' really do
If you've ever generated or received a protected PDF, you've met two passwords that are easy to confuse. User (open) password — required to open the file at all. With AES-256 this is real encryption: without the passwor
If you've ever generated or received a protected PDF, you've met two passwords that are easy to confuse.
User (open) password — required to open the file at all. With AES-256 this is real encryption: without the password, the content can't be read.
Owner (permissions) password — controls what someone who can open the file may do: print, copy text, edit, fill forms, rearrange pages. A file can have only an owner password, in which case it opens without any prompt.
The honest caveat: permission flags are enforced by the PDF reader. Well-behaved readers (Acrobat, browsers) respect them, but they are not encryption of the actions themselves. Treat "no copy" as a polite request backed by most software, not a guarantee. If content must stay secret, use an open password and share it through a different channel than the file.
Practical tips:
- Prefer AES-256. RC4 and 40-bit encryption from old tools are broken.
- Use different user and owner passwords; if they match, anyone who can open the file can also change its permissions.
- Don't email the password in the same message as the PDF.
- Test the output in a second reader before sending it.
Disclosure: I run GoToolsOnline, and its free PDF password tool sets separate open and owner passwords, print/copy/edit/form/page restrictions, and AES-256 (or AES-128) for up to 20 files at once: https://gotoolsonline.com/tools/pdf-password-protect
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.