Menu

How I built a tamper-evident audit trail for e-signed waivers in plain PHP (no framework)
📰

How I built a tamper-evident audit trail for e-signed waivers in plain PHP (no framework)

DEV Community: php·Wasim·1 day ago
#fZt0NwBR
#devto#dev#hash#record#signer
Long article (799 words) — no AI summary yet.
Reading 0:00
15s threshold

When a gym or trampoline park swaps paper waivers for a tablet, the signature itself is the easy part. The hard part is proving, months later, that the person signed this exact text at this exact time . If a claim ever reaches a lawyer, a PNG of a squiggle proves very little on its own.

I run a small waiver SaaS on shared hosting with vanilla PHP and MySQL, no Composer and no framework. Here is the audit-trail design I use, and the traps it avoids.

What the record has to prove

A signed waiver record should answer four questions without anyone trusting my database:

What did they agree to? The exact waiver text and version, not "waiver #12".

Who signed? Name, email or phone, and for minors, the guardian.

When and from where? Server timestamp in UTC, IP address, user agent.

Has anything changed since? Any edit to the record must be detectable.

The first three are columns.…

Continue reading — create a free account

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