Skip to content

kevinejohn/Spacecrypt

Repository files navigation

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

About

Hide messages inside text using zero-width characters

Resources

License

Stars

Watchers

Forks

Packages

No packages published