Skip to main content

AES-256-GCM encryption with a document MAC

One employee's salary review letter: it passes through a mail relay, a mailbox and a backup on its way to one person, and at none of those points should it be readable.

  • AES-256 in Galois/Counter Mode, ISO/TS 32003, PDF 2.0 revision 7: an authenticated cipher, so a tampered byte is refused rather than decrypted into nonsense
  • The ISO/TS 32004 document MAC (/AuthCode), which permissions bit 13 makes mandatory, over the whole file
  • Permissions read back from the file: printing allowed, copying, changes and annotations not, and the metadata encrypted with the content
  • No archival claim: ISO 19005-4 bars the Encrypt key, so the document waives PDF/A in its own conformance list rather than ask and be refused

What to look for. Open the file with the password elm-terrace-2026. In the reader's security properties the level reads 256-bit AES and the permission list is the one the letter prints. The render report names the reader cost of the GCM choice: not every reader implements ISO/TS 32003 yet.

Features used: tables, encryption (aes256Gcm)