Skip to content

LockHTML v1.0.0

Choose a tag to compare

@drsamonline drsamonline released this 20 Oct 08:46
· 42 commits to main since this release

LockHTML v1.0.0

Turn any HTML file into a PIN-protected document — optionally viewable only once.

Highlights

  • 🔐 AES-256-GCM encryption with a PBKDF2-SHA256 derived key (250,000 iterations by default).
  • 👁️ One-time view — expire a document after its first successful open.
  • 🖥️ Cross-platform CLI — lockhtml lock, unlock, gui on Windows, Linux and macOS.
  • 🌐 Browser GUI — a single self-contained HTML file, no install, runs on any OS.
  • 📦 Self-contained output — locked files need no server, no app, no internet.
  • 🔁 Reversible — recover the original with the PIN via lockhtml unlock.

Install

pip install lockhtml
lockhtml lock report.html --pin 4821 --one-time

Live GUI

👉 https://drsamonline.github.io/lockhtml/

Security note

The PIN provides real encryption — the file is unreadable without it, even from the raw source. "One-time view" is a browser-enforced deterrent, not a server guarantee: a determined recipient can still copy the file or screenshot the decrypted page. See SECURITY.md.

Compatibility

Files are interchangeable between the Python CLI and the JavaScript GUI. Verified by CI on Linux, Windows and macOS with Python 3.9–3.12.