Menu

Verifying a sealed PDF in the browser: SHA-256, ECDSA P-256, RFC 3161 and a hash chain
📰

Verifying a sealed PDF in the browser: SHA-256, ECDSA P-256, RFC 3161 and a hash chain

DEV Community: security·Minute Notary·18 days ago
#78Tz6UTd
#devtosecurity#devto#dev#digest#verifier
Long article (1375 words) — no AI summary yet.
Reading 0:00
15s threshold

A PDF arrives with a seal on it. How does the person holding it check that seal without trusting the sender, and without uploading the document anywhere?

We needed an answer for the PDFs our office seals, so we wrote one down as a spec and built an open-source verifier around it: sealed-pdf-verify . It runs as a library (Node 20+ and browsers), a CLI, and a single HTML file that works from file:// with no network requests. This post walks through the five checks it makes, the one place WebCrypto was not enough, and what a "genuine" result does not prove.

What the holder receives

Two files: the PDF, and a small proof JSON next to it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.