← Back to blog

What Is PDF Encryption? How It Works and What 256-Bit Means

November 13, 2026
What Is PDF Encryption? How It Works and What 256-Bit Means

PDF encryption scrambles the contents of a PDF so that nobody can read it without the right password. The text, images and other data inside the file become unreadable code until someone enters the correct password. If you need to encrypt a PDF, you can do it in your browser with FlowPDF's Protect PDF tool. The file is processed locally, so it never leaves your device.

This guide explains what an encrypted PDF is, how a password turns into an encryption key, what the 40-, 128- and 256-bit figures mean, and where encryption stops protecting you.

FlowPDF
Protect PDFs in Your Browser
FlowPDF's Protect PDF tool processes files locally in your browser, so they stay on your device while you encrypt them.
Visit

TL;DR

  • An encrypted PDF is unreadable without the correct password. Encryption applies to the strings and streams inside the file, which hold your text, images and page content.
  • A PDF has two passwords: a user (open) password and an owner (permissions) password. Only the user password keeps people from opening the file.
  • Modern PDFs use AES. A 256-bit key is the current recommended level, and older RC4 and 40-bit keys are outdated.
  • Key length is only half the story. A short or guessable password weakens even the strongest encryption.
  • Encryption protects the file while it is locked. Once you share the password or open the file, you need other habits to keep it safe.

Table of Contents

What is an encrypted PDF?

An encrypted PDF is a Portable Document Format file that has been transformed with encryption so it is unreadable without the correct tools or passwords. It protects sensitive information from unauthorized readers. It can also control whether a person who opens the file may print, copy text or modify it.

Three points make this easier to picture:

  1. Encryption covers the content, not the filename. When a PDF is encrypted, all strings and byte streams, such as page contents, are encrypted. Some items, such as XMP metadata streams, may be exempt. Without the password, you cannot view the pages.
  2. The structure stays readable. RFC 3778 explains that encryption is normally applied only to string and stream data. This keeps random access to the file working, so a viewer can jump to a page without decrypting everything.
  3. Password-protected always means encrypted, but not the reverse. All password-protected PDFs are encrypted. Some encrypted PDFs, however, open without asking for a password. They carry permission settings only.

That last point matters when you read other guides. "Locked PDF" can mean two different things, and the next section explains why.

User password and owner password: two different locks

The PDF security handler supports two passwords:

  • User password (open password). This is the password a reader types to open the document. According to the ReportLab documentation, it opens the file in a restricted mode, with the permissions set when the file was encrypted.
  • Owner password (permissions or master password). This gives full control, including changing the permissions and the passwords.

The practical rule: if you only set an owner password and leave the user password empty, anyone can open the file. A PDF Association presentation on PDF 2.0 encryption points out that setting permissions makes little sense without an owner password. It adds that if no user password is set, the document can be opened without restrictions.

So when your goal is "only the people I choose can read this", set a user password. Permissions such as no printing or no copying are a second layer. They tell the viewer what to allow, and it is up to the viewer to respect them once the file is decrypted. If you want to go deeper on those settings, read our guides on preventing editing in a PDF and what disabling copying will and won't stop.

How PDF encryption works, step by step

Many people assume the password itself scrambles the file. It does not. PDFlib explains that the software calculates an encryption key from the password and other parameters, including the permission settings. The length of that key is independent of the length of the password.

Here is the process in plain terms:

  1. You choose a password. The tool takes your password and combines it with other values stored in the file.
  2. A key is derived. This produces the binary encryption key. A longer password does not make a longer key. It only makes the password harder to guess.
  3. The content is encrypted. The strings and streams in the PDF are scrambled with an algorithm, either RC4 or AES.
  4. The viewer reverses it. When you open the file and enter the password, the viewer derives the same key and decrypts the content on screen.

PDF 2.0 changed step 2. According to a PDF Association talk by Matthias Valvekens, ISO 32000-2 generates the file encryption key independently of the passwords and promotes AES-256. It also deprecated all RC4 usage.

Password length and characters

Passwords have had limits. Up to PDF 1.7 (ISO 32000-1), passwords were limited to 32 characters in Latin-1 encoding. The Adobe Extension Level 3 for PDF 1.7 introduced Unicode and raised the maximum to 127 bytes in UTF-8. This is useful if you prefer a long passphrase with non-English characters. Test that the file opens in the viewers your recipients use.

What does 256-bit PDF encryption mean?

The "bit" figure is the length of the encryption key. A longer key means many more possible keys, which makes guessing the key by brute force impractical. PDF encryption uses 40-, 128- or 256-bit keys depending on the PDF version. Singapore's data protection regulator says the same thing in general terms: the strength of encryption generally depends on the algorithm and the key length, and longer keys are more secure.

SettingAlgorithmKey lengthWhere you meet it
Old PDF securityRC440-bitEarly PDF versions, now outdated
Mid-generationRC4 or AES128-bitPDF 1.4 to 1.7 files
CurrentAES256-bitPDF 1.7 extensions and PDF 2.0

The table follows PDFlib's description: RC4 is a symmetric stream cipher that is deprecated in PDF 2.0, and AES is the Advanced Encryption Standard from FIPS-197. PDF 2.0 uses AES-256 with improved password handling, while earlier versions used RC4 or AES-128.

AES with a 128-bit key was deprecated in the initial PDF 2.0 specification in 2017, with 256-bit becoming the recommended minimum for conforming PDF 2.0 documents. The same knowledge base advises targeting PDF 1.7 with AES 256-bit encryption for compatibility with most viewers.

So when someone asks about "PDF 256 bit encryption", the answer is short. It is AES with a 256-bit key, the strongest option in common use for PDFs, and it is the right default for contracts, financial statements and any file with personal data.

Encryption is not the same as a digital signature

People often mix up the two. Encryption protects confidentiality: who can read the file. A digital signature protects integrity and authenticity: whether the file has changed and who approved it. A PDF can use one, both or neither. If your goal is to stop strangers from reading a file, encryption is the tool. If your goal is to prove who approved a document, that is a signing job. You can handle both kinds of tasks with the free PDF tools in your browser.

PDF encryption and digital signatures compared

What encryption protects, and what it does not

Encryption is strong, but it works best when you know where it applies. Treat these as habits for using it well.

Pick a password that matches the key

A 256-bit key does not rescue a weak password. PDFlib notes that the strength of PDF encryption depends on the length and quality of the password as well as the key length. Names, plain words, birthdays and pet names are easy to guess or to try systematically with dictionary attacks. Use a long passphrase of several unrelated words, and never reuse the password you use for email or banking.

The same logic applies to keeping keys and passwords apart from what they protect. The Singapore regulator advises managing encryption keys by keeping them secure and separate from the encrypted data. For a broader look at why keys matter, see this article on encryption key management and password strength.

Pick a password that matches the key

Share the password separately

Once you send a password, you cannot take it back. Send the file by email and give the password through a different channel, such as a phone call or a message app. If a recipient no longer needs access, send a new copy with a new password.

Remember the file is exposed while open

File-based encryption keeps a file protected until the user decrypts it with the correct password. The PDPC guide notes that this is different from full disk encryption. With full disk encryption, the data is transparent to the user while the computer is on, and an attacker who gains access at that point could still reach the data. So keep your device locked, updated and free of software you do not trust, and close the PDF when you finish reading.

Check metadata and visible content

The PDF 2.0 /EncryptMetadata flag controls whether metadata is encrypted. The PDF Association presentation notes that even encrypted files can be parsed for metadata, stored in archives and searched. Review the document properties before you send. For a full routine, see 5 local ways to send a PDF securely and remove hidden metadata.

If some information should never reach the reader at all, remove it first. Redacting a PDF locally and permanently takes the sensitive text out of the file, and then you can encrypt what remains.

Why this matters in Singapore

If you handle other people's personal data, encryption is part of everyday good practice. Section 24 of the PDPA requires organizations to make reasonable security arrangements to protect personal data in their possession or under their control. The PDPC lists encrypting personal data to prevent unauthorized access as a technical measure for electronic data management, alongside secure networks, access controls and the right email security settings for highly confidential emails.

The PDPC also advises that documents containing sensitive personal data should be processed and sent with particular care, and that organizations could set an email policy for such documents. A password-protected PDF is a simple way to follow that advice for payslips, medical forms, NRIC copies, tenancy agreements and client contracts. If your organization has legal questions about its PDPA duties, speak to your data protection officer or a lawyer.

For reference, Singapore also publishes a Singapore Standard (2024 edition) that extends the ISO 32000-2:2020 specification with integrity protection for encrypted PDF documents. It is sold in Singapore only, and most users will never need it.

How to encrypt a PDF in your browser

Here is the process with FlowPDF. It runs locally, so the document stays on your device.

  1. Open the tool. Go to Protect PDF. No signup is needed.
  2. Add your file. Select the PDF from your device. It is not uploaded to a server.
  3. Set the user password. Choose a long passphrase. This is the password the reader will type to open the file.
  4. Apply and download. FlowPDF uses local AES password protection. Save the protected copy under a new name so you keep your original.
  5. Test it. Open the new file and confirm it asks for the password.
  6. Share it safely. Send the file and the password through two different channels.

For a longer walk-through of the options, read how to password protect a PDF. If you want to compare approaches, see protecting PDFs without Adobe.

When you need to open a locked file

If you already know the password and want a copy without the lock, Unlock PDF removes it locally. Our guide on removing PDF restrictions covers permission settings, and there is a short one on removing print protection.

Where FlowPDF fits

FlowPDF is a PDF toolkit that runs in your browser. Edit, merge, split, compress, protect, unlock, redact and sign all happen on your device, with no document upload, no subscription and no watermark.

The order of the tasks matters for a sensitive file. Edit or merge first, redact anything that should not be there, compress if the file is too big to send, then protect it last. That way the password is applied to the final version. You can do all of this in one place, and the document does not leave your device at any step.

Open FlowPDF and pick the tool you need.

FlowPDF

Our perspective

Most people meet PDF encryption at the worst moment: a contract is due, a form holds a passport number, and the file is about to go into an email. They search for how it works because they want to be sure the lock will hold.

Our view is simple. The strength of a lock matters, but so does where you turn the key. If a document is uploaded to a server so it can be encrypted, you have already shared it with someone before the protection starts. That is why we built FlowPDF to process PDFs locally in your browser. Your file stays on your device while you add a password.

We also believe privacy tools should be easy to use. All our features are free, with no watermark and no signup. A freelancer protecting a contract, a student tidying research papers and a business sending client documents should get the same protection.

Our advice: use a long passphrase, send the password separately, redact what should not be shared, and protect the final version last.

Ronald Ang

FAQ

Is an encrypted PDF the same as a password-protected PDF?

Nearly. Every password-protected PDF is encrypted, because the password is what derives the key. But a PDF can also be encrypted with permission settings only, so that it opens for anyone while restricting printing or copying. For privacy, set a user password.

Is 256-bit PDF encryption secure?

AES-256 is the recommended level for PDF 2.0 documents, and 128-bit AES was deprecated in that specification. The key length is only part of the picture. Use a long, unique passphrase, because a weak password is the easier target.

Does the password directly scramble the PDF?

No. The software calculates an encryption key from the password and other parameters, and that key encrypts the content. The key length does not depend on how long your password is.

Does encryption stop someone from copying or sharing the file after opening it?

Once a person has the password and opens the file, the viewer is responsible for respecting the permission settings. You cannot recall a password after sending it. Share the password only with people you trust, and send a new protected copy if access should change.

Can I encrypt a PDF without uploading it?

Yes. FlowPDF's Protect PDF adds a password in your browser, and the file is processed locally. No signup or payment is needed.

Sources