staticrypt
staticrypt copied to clipboard
Password protect a static HTML page, decrypted in-browser in JS with no dependency. No server logic needed.
It would be neat if you pass a custom error message right from the CLI arguments. Something like `--error-message 'Try again!'` that could be referenced in the HTML template as...
Very cool work, thanks for that! I created a [template repository](https://github.com/a-nau/password-protected-website-template) to easily host an encrypted website with Github Pages. I thought it might be an interesting pointer for people....
If I am right, you are not setting any [specific encryption mode](https://stackoverflow.com/questions/1220751/how-to-choose-an-aes-encryption-mode-cbc-ecb-ctr-ocb-cfb) thanks to that is used [default CBC mode](https://code.google.com/archive/p/crypto-js/) which can escalate into output vulnerabilities and [certain attacks](http://www.jakoblell.com/blog/2013/12/22/practical-malleability-attack-against-cbc-encrypted-luks-partitions/) ......
Is there a way to decrypt (in the opposite way)?
Hi, Not sure if staticrypt works in Github Actions. I like to use staticrypt to encrypt my Jekyll _site dir (or html files) by default it does not create the...
``npx staticrypt index.html test -o index.html`` throws the following error: > Native crypto module could not be used to get secure random number. A quick fix could be to use...
this removes the dependency on crypto.js and uses the webcrypto API. I haven't updated the CLI with the new logic, but I wanted to open this PR with what I...
Pro/Cons that I see: **Pros** - no dependencies at all - smaller output (not a big issue I think, minified crypto-js is quite lean already) - no need to update...
Hi, I tried cryptojs with a bit larger files (~140 Meg) and it results in **uncaught exception: out of memory**. I even modified the code to open the file, read...
I'm using this to encrypt a Hugo made static site. I get a consistent FOUC when navigating through the site pages. Are there any proposed solutions to this?