Security & Privacy

How to Password-Protect a PDF File

PDF passwords are a useful first line of defence for sensitive documents — but they work differently than most people assume. Here is what you are actually getting and when it is enough.

June 5, 20266 min 阅读

The two types of PDF passwords

Most people think of a PDF password as a single thing, but the PDF specification actually defines two distinct types of password protection, which serve different purposes.

An open password (also called a user password) restricts who can open and view the file at all. Anyone who tries to open the PDF will see a password prompt. Without the correct password, they cannot read the document. This is the type of protection most people imagine when they hear "password-protected PDF."

A permissions password (also called an owner password) allows the file to open normally without a password, but it restricts what the reader can do. You can use it to prevent printing, copying text, filling forms, or adding annotations. The file is visible to everyone but certain actions are locked.

iKeepPDF's Protect PDF tool applies an open password with strong AES-256 encryption, which is the most useful protection for most people sharing sensitive documents.

What AES-256 encryption actually means

When a tool says it uses "AES-256 encryption," it means the document contents are scrambled using the Advanced Encryption Standard with a 256-bit key. This is the same standard used by governments and financial institutions worldwide. Without the password, brute-forcing an AES-256-encrypted PDF is computationally infeasible with current technology — it would take longer than the age of the universe to try every possible key.

The practical implication: if you use a strong password, nobody is going to crack your encrypted PDF by attacking the encryption directly. The encryption itself is solid. The weak link is always the password — if you use "1234" or your name, the protection is trivially bypassed with a dictionary attack.

A strong PDF password should be at least 12 characters, mix uppercase, lowercase, numbers, and symbols, and not be a dictionary word or obvious pattern. A password manager can generate and store these for you.

提示: Never send the password in the same email as the protected PDF. Send the file first, then the password through a different channel — a text message, a separate email, or a voice call.

Step-by-step: adding a password to a PDF

  1. Open the Protect PDF tool on iKeepPDF.
  2. Upload your PDF by dragging it into the upload area or clicking to browse.
  3. Enter a strong password in the password field. Use the show/hide toggle to verify you have typed it correctly.
  4. Click Protect. The browser encrypts the file locally using AES-256.
  5. Download the protected PDF. Test it immediately by opening it in a new tab to confirm the password prompt appears.

Because iKeepPDF processes everything in your browser, your file and your password are never sent to any server. This is particularly important when protecting sensitive documents — you are not handing your confidential file to a third-party service just to add a password.

Password-protect your PDF instantly — your file stays on your device.免费试用

What PDF password protection does not protect against

Once someone has legitimately opened a password-protected PDF with the correct password, they can take a screenshot of every page. No technical measure prevents this. If you share a document and the recipient has the password, they can capture every page visually regardless of any permissions settings.

PDF permissions passwords (which restrict printing and copying) are also relatively easy to bypass with dedicated software. Unlike open passwords which use strong encryption, permissions restrictions in many PDF implementations are enforced at the application level rather than through cryptographic means. Do not rely on permissions passwords as a strong security measure.

Finally, a password-protected PDF stored on a compromised device is not safe. If an attacker has access to the device where you store the password, they have access to both the file and the key. For very sensitive long-term storage, consider full-disk encryption rather than relying solely on PDF passwords.

Removing a password you no longer need

If you protected a PDF and now want to share it freely or stop requiring the password to open it, the Unlock PDF tool removes the password. You will need to enter the current password to prove you are authorised to remove it, after which the file opens without any restrictions.

This is useful when a document was distributed under controlled circumstances and the protection period has passed — an annual report released under embargo, or an exam paper that is now public. Rather than keeping track of passwords indefinitely, you can simply remove the restriction once it is no longer needed.

Frequently asked questions

Can I recover a PDF password I have forgotten?

If you forget the password for a strongly encrypted PDF (AES-256), there is no legitimate way to recover it. This is by design — if recovery were easy, the protection would be meaningless. Some tools can attempt brute-force or dictionary attacks on weakly-encrypted or older PDFs (pre-2000 encryption standards), but AES-256 is resistant to this.

Does adding a password change the file quality or content?

No. Password protection is applied as a layer over the existing file. The content — text, images, layout — is unchanged. Only the encryption wrapper is added around it.

Can I password-protect specific pages of a PDF, not the whole file?

The PDF format does not support page-level password protection. The password applies to the entire document. If you need different access levels for different content, split the document into separate PDFs and protect each independently.

Will a password-protected PDF work on all devices and PDF readers?

Yes. AES-256 encrypted PDFs are supported by all major PDF readers including Adobe Acrobat Reader, Apple Preview, Chrome, Firefox, and mobile PDF apps. The user will be prompted for the password when they try to open the file.

Is it legal to remove a password from a PDF?

It depends on the context. Removing a password you set yourself is entirely legitimate. Removing a password set by someone else without their permission may violate copyright, terms of service, or applicable laws — even if the underlying content is not confidential. Use password-removal tools only on files you own or have explicit permission to modify.