Security

Secure Assets: Modern PDF Security Best Practices

Leaking metadata or using fragile passwords leaves your sensitive business assets exposed. Learn how to secure your file paths correctly.

Security TeamJune 23, 20269 min read
Secure Assets: Modern PDF Security Best Practices
Data SecurityEncryptionPDF ProtectionCompliance

Setting a PDF to 'read-only' feels like security, but it isn't one on its own. Anyone with a text editor or a basic scripting library can open an unencrypted PDF and read every string inside it, including text hidden under a black box or shrunk to invisible size. Real document security means understanding what a PDF actually protects, and what it doesn't, before you rely on it.

Two Different Passwords, Two Different Jobs

PDF encryption defines two separate passwords that people frequently conflate:

  • User (open) password: encrypts the file itself. Without it, the file won't open at all, in any viewer.
  • Owner (permissions) password: doesn't encrypt the content — it sets flags for what a *compliant* viewer should allow, like printing, copying text, or editing. A viewer that ignores those flags (and plenty of tools do) can bypass them entirely, because the underlying content isn't actually locked.

If you need real confidentiality, set a user password. If you only need to discourage casual printing or copying in well-behaved viewers, an owner password is enough, but don't mistake it for encryption.

Encryption Strength Matters

PDF has supported several encryption algorithms across its history; older ones (40-bit and 128-bit RC4) are broken or trivially crackable by modern tools. Current PDF software should default to AES-128 or AES-256, and it's worth confirming which your tool actually uses rather than assuming.

The Redaction Mistake

The single most common PDF security failure is 'visual' redaction: covering sensitive text with a black rectangle, or highlighting it, while the original characters remain untouched in the content stream underneath. Anyone who selects the text, copies it, or runs it through a text extractor gets the full original content — the black box was never anything but a picture drawn on top. Real redaction removes the text (and any image data covering the same area) from the file. After redacting, always verify by trying to select or search for the text you removed.

Metadata Leaks More Than People Expect

Beyond visible content, PDFs carry metadata: author name, the software and version used to create the file, and often edit history or file paths from the original author's machine. This is worth scrubbing before sharing anything externally — it's a routine step, not paranoia, especially for legal or client-facing documents. Our ultimate guide to PDF editing covers the underlying document structure this metadata lives in.

Digital Signatures vs. Password Protection

Encryption and digital signatures solve different problems. Encryption controls who can open or use a file. A digital signature proves who signed it and that it hasn't changed since — see our guide to digital signatures for how that verification actually works. A password-protected file can still be unsigned, and a signed file isn't necessarily encrypted.

Best Practices

  1. Use AES-128 or AES-256 encryption, not legacy RC4, for anything that needs real confidentiality.
  2. Set a user password for confidentiality, an owner password for permission hints — know which one you actually need.
  3. Scrub metadata before external distribution. Author names and file paths from internal systems shouldn't ship with a public document.
  4. Never redact by covering. Confirm removed text is actually gone from the underlying content, not just hidden visually.
  5. Flatten forms after signing. Once a form's fields are filled and signed, flatten them into static content so they can't be silently altered afterward. If you're clearing old restrictions on legacy files, see our PDF password removal guide.

Common Tasks

Password-protecting a file for external sharing: apply a user password with AES-128/256 before sending anything with sensitive content over email or an unmanaged file share.

Auditing a document before publishing: check metadata for author/path leakage, confirm any redacted sections are truly removed (not just visually covered), and verify there's no leftover form data from drafting.

Troubleshooting

A password-protected file won't open in some viewers — older or lightweight viewers sometimes don't support AES-256. If broad compatibility matters, AES-128 has wider support.

Redacted text is still showing up in a search index or copy-paste — the redaction only covered the visual layer. Re-do it with a tool that deletes the underlying text and image data.

Locked out of an old file with no record of the password — see our PDF password removal guide for how to recover access to files you have legitimate rights to.

Bottom Line

PDF security has real, well-defined mechanisms, encryption, permission flags, digital signatures, but each protects something different, and none of them protect you from your own visual redaction habits. Know which one you actually need before you rely on it.