Re:Password protect a static HTML page
by pdq on Saturday February 18, 2023 @01:13PM
(#34849359)
Client side decryption has the benefit that no machine or router in the middle can view or cache the decrypted page without the password.
[ Parent
| on HN ]
Re:Password protect a static HTML page
by tptacek on Saturday February 18, 2023 @01:56PM
(#34849849)
You mean, unless they tamper with the Javascript to capture the password (or the derived key).
Re:Password protect a static HTML page
by dividuum on Saturday February 18, 2023 @03:00PM
(#34850458)
I designed a similar tool with that threat model in mind: the resulting HTML/JS is as minimal as possible so it’s possible to inspect before entering the password. Of course assumes safe browser and client machine.. https://github.com/dividuum/html-vault
Re:Password protect a static HTML page
by viraptor on Saturday February 18, 2023 @09:37PM
(#34853647)
Kind of possible. With enough content, would you actually spot a "}; and some highly obfuscated code in the middle of the blob? (My guess is a no)