Given a (HTML or plain text) file and a password, htmlbox encrypts the file and
wraps the result into javascript which can decrypt it in (browser given the correct password, of course). See an example (the password is xkcd
).
- multiple passwords support
- AES for encryption and SHA25 for key deriviation (from CryptoJS)
- Store store the plaintext in HTML source
- Authentication
- if somebody knows contents of a message, they can generate a modified version of it without knowing the key
git clone git://github.com/andres-erbsen/htmlbox.git
cd htmlbox
export PATH=$PATH:$(pwd)
- Add the installation directory to your persistent path if desired - otherwise you have to repeat the last two steps in each shell you want to use it.
- Encrypt
secret.html
using passwordwhocares
and save the results toattatchment.html
by executing:cat secret.html | htmlbox.py whocares > attatchment.html
- Use passwords
usual
andtHe long pwd
instead:cat secret.html | htmlbox.py usual "tHe long pwd" > attatchment.html
- Use precomputed hashes (as hex) instead of passwords:
cat secret.html | htmlbox.py -H 065ec384cc2993d900b4f800a36e21f561eb0e7b6b42f73d1deacbdb90e9b633 > attatchment.html
- Convert plaintext to a html paragraph on the go: encrypt list of running processes:
ps -e | htmlbox.py -p whocares > ps_e.html
- customize page title:
-t "Very Funny"
- customize password prompt:
-m "No plaintext the source, don't bother"