Home

Awesome

html-vault

Create self-contained HTML pages protecting secret information. Usage:

html-vault ~/Document/secret.txt protected.html

Here's an example HTML file (password is "thisisanexample")

When called, the program requires you to enter a password. It will then generate the HTML output file. This may take a moment. Once completed, the generated protected.html file is a self-contained HTML file with the content of secret.txt embedded in a way that it can only be accessed if the password is known. You might then place this file on a hidden url for later access.

If secret.txt happens to start with a < character, HTML content is assumed and the decoded content is directly shown without HTML-escaping anything. This can be used to encrypt self-contained HTML apps with everything inlined.

Decoding uses browser based crypto. A derived password is generated using 5 million rounds of PBKDF2. The secret file content is AES-GCM encrypted using this derived password.

What it can and can't do

Status

Unreviewed - use with caution. Feedback is welcome.

Requirements

License

BSD 2-clause