News for hackers. Stuff that matters.
Re:Password protect a static HTML page by chii on Saturday February 18, 2023 @11:58PM (#34854603)
> you also need a program that can decrypt/encrypt that format

that's just a self-extracting archive, which is a very common idea and easily created as well (very popular with both shareware distribution).

The problem is that you have to trust the extracting code to not install anything else malicious. The browser provides the perfect sandbox - you cannot install malware into the system via javascript in the browser, and thus you can trust it to run.

Re:Password protect a static HTML page by efreak on Tuesday February 21, 2023 @03:31PM (#34886715)
And you have to trust that running processes on dish aren't going to make a copy of it. Or that it won't end up stuck in the cache. This is (theoretically) only decrypted in memory (your browser may save a preview image of the tab, I believe Firefox mobile does this, not sure about desktop browsers)
Re:Password protect a static HTML page by efreak on Tuesday February 21, 2023 @03:34PM (#34886759)
Also, your self-extracting archive isn't platform independent, and likely can't be used at all on mobile platforms (iOS, Android) that don't offer to trying anyway files ootb (and are probably the wrong architecture anyways)