Skip to content
PDFCraft.in logoPDFCraft.in
Cookie & Advertising NoticePDFCraft and our partners (including Google AdSense) use cookies to analyze traffic, personalize content, and display relevant ads. Standard PDF processing remains 100% in-browser. Learn more in our Privacy Policy and Terms of Service.

Password-Protect a PDF and What Encryption Actually Does

Understand the difference between an open password and a permissions password, why AES-256 is stronger than older RC4, and why permission restrictions alone are weak. Learn how to choose a strong password, share it safely, and remove a password you know from a file you own.

Published 23 Nov 2026

User (open) password versus owner (permissions) password

A user password, also called an open password, is required before the PDF can be displayed. Without the correct password the content remains encrypted and unreadable. This is the password most people mean when they say a file is password-protected.

An owner password, sometimes called a permissions password, does not prevent opening. It is intended to control what a reader is allowed to do after the file is open: printing, copying text, editing, or adding annotations. Many readers honour these flags, but they are not cryptographically enforced against a determined user.

You can set both passwords, the same password, or only one of them. Setting only an owner password leaves the content readable by anyone; it merely asks cooperating readers to restrict certain actions. For confidentiality the user password is the one that matters.

AES-256 versus older RC4 encryption

Modern PDF encryption uses the Advanced Encryption Standard with a 256-bit key (AES-256). This algorithm is widely regarded as strong when the password itself is strong. Older PDFs may still use RC4 with 40-bit or 128-bit keys. RC4 is considered broken for many practical purposes and should be avoided for new files.

When you protect a PDF with a current tool the default is normally AES-256. The tool also writes the necessary encryption dictionary and revision information so that compliant readers can decrypt the file once the password is supplied. The encryption covers the content streams, not the file header that identifies the document as a PDF.

If you receive an older file that was encrypted with RC4, re-saving it with AES-256 after unlocking it improves the strength of the protection. Simply changing the password on an RC4 file does not automatically upgrade the algorithm; you must re-encrypt with a modern tool.

Why permission restrictions are weak

Permission flags are stored inside the encryption dictionary and are checked by the PDF reader. A reader that chooses to ignore the flags can still print, copy or edit the document once it has been decrypted. Many free and open-source tools do exactly that.

Because the content is already decrypted in memory after the user password is entered, any software that has access to the decrypted bytes can save a new copy without the restrictions. The owner password does not encrypt the content a second time; it only sets policy flags.

For real protection against viewing, rely on a strong user password and AES-256. Treat permission settings as a polite request to cooperating software, not as a security boundary. If you need to prevent copying for ordinary users, the flags still have value, but they will not stop someone who is determined.

Choosing a strong password and sharing it safely

A strong password is long, unique to the file or to the recipient, and not based on easily guessed personal information. A passphrase of four or more unrelated words, or a randomly generated string of at least twelve characters, is far better than a short word with a digit appended.

Never send the password in the same email or message that contains the PDF. Use a different channel: a phone call, a separate messaging app, or an in-person exchange. If the same channel is compromised, the attacker obtains both the file and the key.

Write the password down in a password manager rather than in a plain-text note. If you must share it with several people, consider whether a single shared password is appropriate or whether each recipient should receive a separately encrypted copy. Rotate the password if you suspect it has been seen by anyone who should not have it.

Worked example: protecting a salary slip or bank statement

You need to email a monthly salary slip to a bank or to an accountant. Open the unprotected PDF in a protect tool. Choose AES-256 and set a user password that is at least twelve characters long and not used anywhere else. Leave the permissions flags at their defaults or restrict printing and copying if you wish.

Save the protected file with a clear name such as salary-slip-March-protected.pdf. Compose the email and attach the protected PDF. In a separate message or a phone call, send the password to the same recipient. Confirm that they can open the file before you delete any local copies you no longer need.

The same steps apply to a bank statement, a tax computation, or any other document that contains personal financial data. After the recipient has confirmed receipt, you can unlock the local copy if you need to edit it further, then re-protect it with a new password if it must be sent again.

Removing a password you know from a file you own

If you know the user password and the file belongs to you, an unlock tool can remove the encryption and produce a plain PDF. Supply the password, choose the pages or the whole document, and save the unlocked result. The tool decrypts the content streams and writes a new file without an encryption dictionary.

Unlocking does not work if you do not know the password. No legitimate tool can recover a strong AES-256 password by guessing in reasonable time. Only attempt to unlock files that you have the right to open.

After unlocking you may wish to run a sanitize tool to remove residual metadata, or inspect the metadata tool to see what information remains. The unlocked file can then be edited, re-protected with a different password, or archived in the clear if confidentiality is no longer required.

What encryption does and does not hide

Encryption hides the page content, embedded fonts, images and most annotations from anyone who does not have the password. The file still begins with the standard PDF header, so it is recognisable as a PDF. Some metadata fields may remain readable depending on the encryption revision and the tool that created the file.

Encryption does not hide the fact that the file exists, its size, or the time it was sent. It also does not protect against someone who obtains the password through phishing or by reading it from a shared message. Once the correct password is entered, the content is fully available to that user.

If you need to remove identifying information as well as encrypt, first sanitize the document to strip metadata and hidden content, then apply the password. The reverse order can leave metadata encrypted but still present for anyone who later unlocks the file.

Common mistakes when protecting PDFs

A common mistake is setting only an owner password and believing the file is confidential. Anyone can open it. Another mistake is choosing a short or reused password that can be guessed or is already known from another account.

Sending the password in the same email as the attachment defeats the purpose of encryption. People also forget which password they used and then cannot open their own file. Store the password in a password manager at the moment you create it.

Finally, some users apply weak RC4 encryption because an old tool still offers it. Prefer AES-256. After protecting, always test that you can open the file with the password you set, and that a second copy without the password remains unreadable.

Using the related tools together

The protect tool applies the user password and AES-256 encryption. The unlock tool removes that encryption when you supply the correct password for a file you own. The sanitize tool can strip metadata and hidden data either before encryption or after unlocking.

The metadata tool lets you inspect what information is still visible. Use it after unlocking if you want to confirm that personal details have been removed, or before protecting if you wish to clean the file first.

All of these operations run locally. These steps are processed in your browser rather than on a server. Keep an unencrypted backup in a secure location if you may need to recover the content without the password, because a lost strong password cannot be recovered.

Frequently asked questions

Does an owner password stop people from opening the PDF?

No. An owner password only sets permission flags that cooperating readers may honour. The content remains readable. Use a user (open) password if you want to prevent viewing.

Is AES-256 safe for a salary slip?

AES-256 is a strong algorithm. Safety depends on the password. A long, unique password that is shared through a different channel from the file provides good protection for ordinary personal documents.

Can I remove a password if I have forgotten it?

No. A strong AES-256 password cannot be recovered by guessing in practical time. Only unlock a file when you know the password and have the right to open it.

Should I sanitize before or after protecting?

Sanitize first if you want to remove metadata, then protect. Metadata that is present when you encrypt will be available again to anyone who later unlocks the file.

Why can some tools ignore the printing restriction?

Permission flags are not cryptographically enforced. Once the file is decrypted, any software can choose to ignore the flags and print or copy the content. They are a convenience, not a security control.

Related tools

More guides

All guides