News for hackers. Stuff that matters.
Re:Show HN: html-vault – create self-contained HTML for pass... by maxlaumeister on Tuesday January 14, 2020 @09:17PM (#22051223)
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.

Re:Show HN: html-vault – create self-contained HTML for pass... by Tepix on Wednesday January 15, 2020 @03:54AM (#22052685)
I like it! Works well. Do you see a way to reduce the required code?
Re:Show HN: html-vault – create self-contained HTML for pass... by maxlaumeister on Wednesday January 15, 2020 @05:44PM (#22059643)
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.
Re:Show HN: html-vault – create self-contained HTML for pass... by Tepix on Friday January 17, 2020 @04:09AM (#22073107)
Looks like your code predates the Web Crypto API, so switching over to that should get rid of more than half the code. Right?