What is PDF encryption?
PDF encryption scrambles the text, images and other content of a PDF with a secret key derived from a password. Without the right password, the file cannot be displayed. It is the only PDF security setting that actually keeps unauthorised people from reading a document. It is often called password protection.
How it works
When you set an open password, the PDF software derives a key from it and encrypts every content stream of the file. The structure that tells a reader the file is encrypted stays visible, but the pages themselves are unreadable data. When a reader enters the password, the same key is derived again and the content is decrypted in memory for display. The password itself is never stored in the file in plain form. Encryption can also be combined with permission limits on printing and copying.
Algorithms and strength
Old PDF versions used RC4 with 40-bit or 128-bit keys, which are considered weak today. Modern files use AES, the Advanced Encryption Standard, with 128-bit or 256-bit keys. AES-256 is the current recommendation. The algorithm is only part of the protection, though: a short or common password can be guessed by trying many combinations, so a long passphrase matters as much as the algorithm.
What encryption does not do
Encryption protects the file while it is stored or sent. Once a person with the password opens it, they can read, print or save the content. It also cannot be combined with PDF/A, because archives must always be able to open their files. And if the password is lost, nobody can recover the content, so keep it somewhere safe.
Tools that use this
Guides that put it into practice
Common questions
- Is an open password the same as encryption?
- Yes. Setting an open password encrypts the content. A permissions password alone only sets usage flags and does not stop anyone from reading the file.
- Which encryption should I choose?
- Choose AES-256 whenever the option exists. It is supported by all current PDF readers and gives the strongest protection.
- How should I share the password?
- Through a different channel than the file, for example by phone or text message. A password sent in the same email protects nothing. Agree on the channel in advance.