mapio / kiss

Keep It Secret Stupid – A self-contained (static) web page able to keep a secret…

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Keep It Secret Stupid

The aim of this hack is to generate a selfcontained HTML page able to store a secret, that is, an encrypted text.

In order to use this, you first need to get the Stanford Javascript Crypto Library and embed it in the kiss script; to this aim just run the make command.

Once the kiss command has been generated, given a plain.txt file, you can obtain an HTML encrypted version of it as

./kiss plain.txt password > cipher.html

In order to not save the password in the history, you can use the option -p which prompts for a password

./kiss plain.txt -p > cipher.html
Password: ********

If you now open cipher.html in a (modern) web browser and type password in the form field, you'll get back your plain.txt file (in a pre element).

If you want to decrypt it you can use the unkiss command.

./unkiss cipher.html password > plain.txt

If you want to decrypt it without saving the password you can use the option -p.

./unkiss -p cipher.html password > plain.txt
Password: ********

Including external scripts

The optional -s parameter allows to include an arbitrary number of comma-separated javascript files into the generated file's head section. This option can be useful if the encrypted content is making use of external scripts.

./kiss plain.txt <password OR -p> -s ./script0.js,http://example.com/script1.js,... > cipher.html

About

Keep It Secret Stupid – A self-contained (static) web page able to keep a secret…

License:GNU General Public License v3.0


Languages

Language:JavaScript 70.1%Language:HTML 16.8%Language:Makefile 9.1%Language:Shell 3.9%