Course contentsShow
← Security
Lesson 231 of 3,0525. Cryptographic Hashing and MACsFree lesson

Document Signing and PDF Signatures

Explore digital signatures in documents, PDF signature standards, long-term validation, and timestamp authorities.

Document Signing and PDF Signatures

What you'll learn: How digital signatures are applied to documents like PDFs to prove authenticity and prevent tampering.


When you sign a paper document with a pen, that signature proves you approved it. Digital signatures do the same for electronic documents, but with mathematical proof that's far harder to forge.

How Document Signing Works

Document signing applies the digital signature techniques you've learned (RSA, ECDSA, EdDSA) to entire files. The process:

  1. Hash the document – Generate a cryptographic hash of the complete file content
  2. Sign the hash – Use your private key to create a digital signature of that hash
  3. Embed signature – Attach the signature (and often your certificate) into the document itself

Anyone can verify by hashing the document, decrypting your signature with your public key, and comparing the two hashes. If they match, the document hasn't been altered since you signed it.

PDF Signature Standards

PDFs support embedded digital signatures through the PAdES (PDF Advanced Electronic Signatures) standard. When you sign a PDF:

  • The signature is stored in a special structure that doesn't change the document's hash
  • Multiple signatures can exist (co-signers or counter-signatures)
  • Visual signature appearances show "Signed by..." information

Long-Term Validation and Timestamp Authorities

Digital signatures can become invalid when certificates expire or algorithms weaken. Long-term validation (LTV) solves this by embedding:

  • Timestamp authority signatures – A trusted third party cryptographically proves when you signed (like a notary's date stamp)
  • Validation data – Certificate chains and revocation information frozen at signing time

This proves "the signature was valid at the time it was created," even if the certificate later expires.

Key Takeaway:
Document signing embeds cryptographic signatures into files like PDFs using hash-and-sign operations, with standards like PAdES enabling long-term validation through timestamp authorities that prove when signatures were created.