Hide messages inside text using zero-width characters
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo
simple_demo
tests
.gitignore
.npmignore
LICENSE.md
README.md
package-lock.json
package.json
spacecrypt.js

README.md

Spacecrypt

NPM Package

Install

npm install spacecrypt --save

Use

// import Spacecrypt from 'spacecrypt';
const Spacecrypt = require('spacecrypt');

const publicMessage = 'Hello';
const privateMessage = 'World';

const encodedMessage = Spacecrypt.encrypt(publicMessage, privateMessage);
console.log(encodedMessage); // 'Hello'
const decodedMessage = Spacecrypt.decrypt(encodedMessage);
console.log(decodedMessage); // 'World'


assert(decodedMessage === privateMessage);

Inspired by:

https://pug.sh/steganographr/

https://twitter.com/nwbld