Repolode
wangshengithub

wangshengithub/staticshield

A zero-dependency Node.js tool that encrypts HTML pages (or whole static sites) into self-decrypting files that unlock in the browser with a password.

スター
236
フォーク
27
未解決の Issue
0
最終コミット
3 か月前

これは何?

StaticShield encrypts a single HTML file, or a whole multi-file site, into one self-contained .html file. Visitors see only a password card until they enter the correct password, and the original page is then restored in the browser using WebCrypto. The output is plain static HTML, so it can be hosted on GitHub Pages, object storage, Nginx, or opened locally via file://.

Encryption uses AES-256-CBC with PBKDF2 key derivation (SHA-256 by default, or SHA-512 optionally) at 1,000,000 iterations, and HMAC-SHA256 verifies integrity before decryption. Encryption runs locally through a command-line script or a local web GUI, and the project has no runtime dependencies. The tool is aimed at gating access to internal documents, paid content previews, or temporary private pages, not at resisting determined reverse engineering.

主な機能

  • 01Encrypts single HTML files or whole sites with `--bundle`, inlining CSS, JS and images.
  • 02Decrypts in the browser with WebCrypto and needs no backend.
  • 03Supports a CLI for batch processing and a local Web GUI.
  • 04Offers optional remember-me, share links with the password in the URL hash, and password hints.
  • 05Generates random passwords with a CSPRNG via `--gen-pwd`.
  • 06Supports layered encryption by encrypting an already encrypted page again.

ユースケース

  • Sharing an internal document on a public static host while requiring a password.
  • Previewing paid or members-only content behind a simple password gate.
  • Publishing a temporary private page on GitHub Pages or an object storage bucket.
  • Encrypting a multi-page static site into a zip for password-protected distribution.

トピック

よくある質問

staticshield とは?
A zero-dependency Node.js tool that encrypts HTML pages (or whole static sites) into self-decrypting files that unlock in the browser with a password. StaticShield encrypts a single HTML file, or a whole multi-file site, into one self-contained .html file. Visitors see only a password card until they enter the correct password, and the original page is then restored in the browser using WebCrypto. The output is plain static HTML, so it can be hosted on GitHub Pages, object storage, Nginx, or opened locally via file://.
staticshield は無料で使えますか?ライセンスは?
staticshield にはライセンスが明記されていません。コードは公開されていますが、ライセンスがない場合は再利用の許諾がないため、利用前に作者に確認することをおすすめします。
staticshield は今もメンテナンスされていますか?
半年以内に更新あり。staticshield の最終コミットは 2026年7月25日 です。
staticshield は何に使えますか?
Sharing an internal document on a public static host while requiring a password. Previewing paid or members-only content behind a simple password gate. Publishing a temporary private page on GitHub Pages or an object storage bucket. Encrypting a multi-page static site into a zip for password-protected distribution.
staticshield はどこで入手できますか?
ソースコードとインストール手順は GitHub にあります:https://github.com/wangshengithub/staticshield

概要はプロジェクトの README をもとに AI が生成しています。GitHub の数値は毎日更新されます。

関連プロジェクト