5 ms·
A more lightweight solution would be to hash the password and have a copy of that file at this url. windows.location = hash(password);
by fabiensanglard 4y ago
A more lightweight solution would be to hash the password and have a copy of that file at this url.
windows.location = hash(password);
- pdq 4y agoClient side decryption has the benefit that no machine or router in the middle can view or cache the decrypted page without the password.
- tptacek 4y agoYou mean, unless they tamper with the Javascript to capture the password (or the derived key).
- dividuum 4y agoI 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 https://github.com/dividuum/html-vault
- viraptor 4y agoKind 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)
- dividuum 4y agoYou're right. Probably not. But at least the chance exists as there isn't a multi-KB obfuscated JS dependency somewhere that would be a lot harder to handle.
- efreak 4y agoValid if you actually host the file online. Local files are generally not allowed to make requests. Not sure if local storage methods are usable without http/s.
- hosteur 4y agoWow I like that. So simple and elegant. Could be combined with a username to produce unique urls per user.
- pyrolistical 4y agoA miss configured http server that allows directory listing would compromise everything. Also now all intermediate things that have access to the hashed url would suddenly have access to a secure piece of information. Don’t be clever with security
- cozzyd 4y agoYou can always put an index.html to prevent that mistake.
- pyrolistical 4y agoTheir solution intends for the static file to be copied offline
- madduci 4y agoA more lightweight solution would be to let the Webserver (nginx, https, whatever) password-protect the site. No JavaScript required a d highly efficient
- fragmede 4y agoRequiring some sort of VM or container to run this webserver on? Is it possible that's way more onerous than a static html file which can be emailed around? Are you sure nginx is even going to be around in, say, 15 years? (think password protected PDF but in html and allowing for JavaScript.)
- timidger 4y ago> you sure nginx is even going to be around in, say, 15 years? Considering it's been around longer than that, yes I think it will be around in 15 years
- deleted 4y ago[deleted]