Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hey! I also made something similar to this (uses a password-derived key to create protected, self-contained HTML).

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.



I like it! Works well. Do you see a way to reduce the required code?


I 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.


Looks like your code predates the Web Crypto API, so switching over to that should get rid of more than half the code. Right?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: