6 ms·
Hey! I also made something similar to this (uses a password-derived key to create protected, self-contained HTML). https://www.maxlaumeister.com/pagecrypt/ htt
by maxlaumeister 7y ago
Hey! I also made something similar to this (uses a password-derived key to create protected, self-contained HTML).
https://www.maxlaumeister.com/pagecrypt/ https://www.maxlaumeister.com/pagecrypt/
Mine was originally in-browser, but thanks to some contributors (Zoltán Gálli and Nial Francis) it has Python and PowerShell CLIs now.
I like your use of async to make sure the work stays off the main thread.
- Tepix 7y agoI like it! Works well. Do you see a way to reduce the required code?
- maxlaumeister 7y agoI just glanced through it again, and it seems to me that aside from styling, every section of code fulfills an important purpose. But it could definitely benefit from being more broken out into components and library-like, so that the only code surfaced in index.html is the UI code.
- Tepix 7y agoLooks like your code predates the Web Crypto API, so switching over to that should get rid of more than half the code. Right?