Skip to content
/ kiss Public

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

License

Notifications You must be signed in to change notification settings

mapio/kiss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •