Description
StatiCrypt password protects a static HTML page. It encrypts the page with a long password using AES-256 and WebCrypto, and it produces an HTML page that shows a password prompt. When the visitor enters the password, the page decrypts its own content in the browser with JavaScript, with no server logic and no dependencies. The result can be uploaded to any static host, such as Netlify or GitHub Pages. StatiCrypt is available as a command-line tool through npm, and you can run it with npx staticrypt or install it globally. It can encrypt one file, a folder of HTML files, or replace all the files in a folder with encrypted copies, and it reads the password from the STATICRYPT_PASSWORD environment variable, including from .env files. It can also create a shareable link that decrypts the page automatically. The site offers an online version that encrypts a file in your browser. Version 3 uses WebCrypto, which only works over HTTPS or localhost, so plain HTTP needs version 2. The source is on GitHub.…
Highlights
- AES-256 encryption with WebCrypto
- Decrypts in the browser with no back-end
- Command-line tool for files, folders and builds
- Works on static hosts such as Netlify and GitHub Pages
Ratings & Reviews
No ratings yet
Be the first to rate Staticrypt.
People also visit
Staticrypt FAQ
What does StatiCrypt do?
It encrypts an HTML page with a password, so the page can be published on a static host and opened only by people who know the password.
How do I install it?
Run npx staticrypt, or install it globally with npm install -g staticrypt.
Does the password go to a server?
The page decrypts in the browser with JavaScript and has no back-end, so no server logic is needed.
Do I need HTTPS?
Version 3 uses WebCrypto, which works only over HTTPS or localhost. For plain HTTP, the site says to use version 2.
Can I keep the password off the command line?
Yes. Set the STATICRYPT_PASSWORD environment variable. The project says .env files are supported.
Is it free?
The listing shows it as free. The source is on GitHub.
What are the best Staticrypt alternatives?
Popular alternatives to Staticrypt include PageCrypt, Encrypted Pastebin - Defuse.ca and Link Lock. See all Staticrypt alternatives
