Download and Documentation


Download

This javascript file is a core component of the Seecret.io application. It handles hiding the text and revealing the hidden text and it is fully open source.

seecret-1.0.js (38k)
seecret-1.0.min.js (9k)
seecret.js is freely distributable under the terms of the MIT license.

Read the API documentation

Want to contribute? Fork it on Github and send a pull request.

How does it work?

The Seecret engine uses plaintext steganography by converting text into an encoded binary representation of the unicode values of each character using zero-width whitespace unicode characters to represent the 0s and 1s


Specifically:

Code example

To create a Seecret you need two values. One is the message to hide as a Seecret, and the other is the covertext you will embed the Seecret message in.
//Hide a message and put it in a Seecret envelope.
var seecretInstance = new SEECRET_ENGINE();
var hidden = seecretInstance.hide("some message");
var envelope = seecretInstance.envelope(hidden);
var stegotext = seecretInstance.stegotext(envelope,"some covertext");

//Get the Seecret from an envelope and unhide it.
if(seecretInstance.isValidEnvelope(envelope){
	var mySeecret = seecretInstance.getSeecretFromEnvelope(envelope);
	var message = seecretInstance.unhide(mySeecret);
	
}