PDF Security Guide

PDF Digital Signatures vs Password Protection — Key Differences

PDF documents can be protected with a password (encryption) and/or a digital signature (authentication). These are independent security mechanisms that serve fundamentally different purposes, but users and developers frequently confuse them. A signed PDF can be encrypted, an encrypted PDF can be signed, or neither. This guide explains the difference between each protection type, how they interact, and what each means for password recovery and document access in 2026.

What a digital signature actually does

A digital signature in a PDF (via a signature field or a DocMDP signature) cryptographically binds the signer's identity to the document content. The signature is created using the signer's private key (typically stored on a USB token, smart card, or PKCS#12 file). The signature covers the document's byte range — any modification after signing invalidates the signature.

Digital signatures DO NOT encrypt the document. A signed PDF is fully readable by anyone. The signature is embedded as a signature dictionary in the PDF (type /Sig) and references a signature field in the AcroForm. The signed content is hashed (SHA-256 or SHA-384 for modern signatures, SHA-1 for legacy) and the hash is encrypted with the signer's private key.

Verification requires the signer's public key certificate (included in the signature or fetched from a trust anchor). The verifier decrypts the signature hash with the public key, hashes the document content independently, and compares. If the hashes match and the certificate chain is trusted, the signature is valid.

Critical distinction

A digital signature proves who signed the document and whether it was modified after signing. A password encrypts the document so it cannot be read without the password. These are orthogonal — you can have both, either, or neither on the same PDF.

What password protection actually does

PDF password protection (Standard Security Handler) encrypts the document content with a symmetric cipher (AES-256 for modern PDFs, AES-128 or RC4 for legacy versions). The password is transformed into a symmetric encryption key through a key-derivation function.

When a PDF is password-protected, the content streams, other streams and strings, and the metadata stream are encrypted. The PDF cannot be rendered or read without entering the correct password. The encrypt dictionary (in the document trailer) stores the encryption parameters but not the password.

Password protection also supports the owner password / user password distinction in some versions. The user password opens the document. The owner password additionally allows changing permissions (printing, editing). In PDF 2.0 (revision 6) the file encryption key is randomly generated and wrapped separately under the user (open) password and the owner (permissions) password; RC4 and the older key derivation are deprecated, but both password roles remain.

How they interact when both are applied

A PDF can be both signed and encrypted. Encryption is applied first (or in the same save as the signature), so the signature covers the already-encrypted file bytes — applying password security after signing rewrites the covered bytes and invalidates the signature. The signature value itself (/Contents) is stored unencrypted so it stays readable, but the rest of the signature dictionary and the whole file are encrypted, and a validator hashes the raw file bytes rather than decrypted content.

Workflow: apply encryption and the signature together, as Acrobat does. The signature then covers the stored bytes of the encrypted file. When a recipient opens the encrypted+signed document, they must first enter the password (or use their private key for CMS encryption) so the content can be decrypted for rendering, but validation still runs against the file's byte range.

Practical implication: if you forget the password on a signed+encrypted PDF, recovery is needed only for the encryption layer. The signature itself does not lock the document — it only proves authenticity after decryption. The password recovery process is the same as for an unsigned encrypted PDF (hashcat mode 10700 for AES-256).

Signature types and their effects on document modification

Certificate signatures (a simple signature field, /Sig): the document is signed by a user's certificate. The signature can cover specific byte ranges or the entire document. Multiple signatures can exist. Modifying a signed document breaks the original signature but new signatures can be added.

DocMDP signatures (Document Modification Detection and Prevention): a special type of signature that restricts what modifications are permitted without breaking the signature. Permitted actions are defined in the signature's reference dictionary (e.g., filling forms, adding comments, signing). Changes outside permitted actions invalidate the signature.

UR signatures (Usage Rights): embedded by Adobe-based PDF writers to enable additional features (saving, filling forms, adding comments) in Adobe Reader. These are technically signatures but relate to software licensing rather than document security.

Password protection is unaffected by signature type. The password gate operates independently of any signature restrictions.

Recovery scenarios for signed and/or encrypted PDFs

Scenario 1: PDF is signed but NOT password-protected — fully readable. No recovery needed. The signature can be removed (Adobe Acrobat > Certificates > Remove Signature) or verified.

Scenario 2: PDF is password-protected and signed — recovery is password cracking only. The signature does not add or remove recovery difficulty. Use hashcat modes 10400-10700 as appropriate.

Scenario 3: PDF is public-key encrypted (no password) and signed — the file key is encrypted to the recipient's public key, so decryption requires that recipient's private key. If you lose the private key and it's not escrowed, the document is unrecoverable regardless of the signature.

Scenario 4: PDF has a signature that prevents editing — this is DocMDP protection, not encryption. The content is readable. The DocMDP restrictions can be removed by re-saving without the signature or by editing the document catalog to remove the /Perms/DocMDP reference (if permitted).

Signature-based permission restrictions

Some PDFs use an approval signature to restrict further modifications: when a document is signed with a DocMDP level that permits only form filling and signing, any other modification breaks the signature. This is NOT the same as password encryption — the content is still fully readable.

Converting a signed-and-restricted PDF to a format without modifications (e.g., re-saving without the signature) removes the restriction but loses signature validation. For the user who only needs the content, this is acceptable. For the user who needs the signed original, the restriction must be respected.

If you have a signed PDF that blocks editing, and you want to edit it anyway: (1) remove the signature in Acrobat Pro, (2) re-save as a new PDF without signature, (3) edit the new document. The content is unaffected — only the signature verification is lost.

Legal and compliance contexts

Legal frameworks such as the US ESIGN Act and the EU eIDAS Regulation give electronic signatures legal effect; only a qualified electronic signature under eIDAS is treated as equivalent to a handwritten signature. Removing a digital signature from a legally executed document may affect its legal standing — even though the content is the same, the signature binding is lost.

Password-protected PDFs without signatures have no authentication — anyone with the password can open them. Signed PDFs without passwords have authentication but no access control. The combination of both provides the strongest protection: only authorized people (with the password) can read the content, and the signature proves who signed it.

In court proceedings: admissibility turns on the jurisdiction's own authentication and evidence rules rather than on who authorised the recovery, so treat it as a question for the receiving body. The signature itself remains valid after password recovery — recovery only obtains the password and rewrites nothing.

Signed vs encrypted PDF identification

  1. 1

    Check if a password is required to open

    If the PDF prompts for a password on open, it's encrypted. If it opens without a prompt there is no open password — but the file can still be encrypted under an empty user password, with permissions set by an owner password.

  2. 2

    Check for signature fields

    Look for blue signature ribbon/tab in Acrobat, or a Signature panel. Signatures appear visually in the document.

  3. 3

    Check for editing restrictions

    If the file opens but you can't edit, check whether the restriction is from a signature (DocMDP) or owner password (permission hash). Both are structurally different.

  4. 4

    For encrypted-only PDFs

    Password recovery — hashcat, John the Ripper, or a commercial recovery tool. The signature status is irrelevant once decrypted.

  5. 5

    For signed-only PDFs with edit restrictions

    The content is readable. Remove the signature to lift restrictions. No password recovery needed.

Frequently Asked Questions

Can a PDF be both signed and password-protected?
Yes. Encryption is applied first (or in the same signing step), so the signature covers the already-encrypted file bytes. Applying password security after signing would invalidate the existing signature.
Does removing a PDF password invalidate the signature?
Yes — saving a decrypted copy rewrites the encrypted bytes the signature covers, so it invalidates the signature. Recovering the password and opening the file in place leaves the signature intact.
Can I recover the password of a signed PDF?
Yes — the recovery process is identical to unsigned PDFs. Hashcat modes 10400-10700 based on encryption tier. The signature doesn't affect password recovery.
Is a signed PDF legally the same as a handwritten signature?
Under eIDAS only a qualified electronic signature has the equivalent legal effect of a handwritten signature; advanced signatures depend on national law. In the US, ESIGN gives electronic signatures legal effect without requiring a certificate or a CA.
Can I edit a PDF that has a digital signature?
If the signature is a simple approval signature, you can remove it and edit. If it's a DocMDP signature restricting modifications, removing the signature lifts restrictions. The content was always readable.
What is DocMDP vs simple signature?
DocMDP (Document Modification Detection and Prevention) defines permitted changes in a signature reference. Simple signatures (approval) just certify the document at signing time but don't restrict future changes.

Have a forgotten-password PDF to recover?

Run a free analysis — encryption type detected automatically, fast techniques tried first, pay only on success.

Run Free Analysis

Related Reading