spacecrypt

    1.0.3 • Public • Published

    Spacecrypt

    NPM Package

    Install

    npm install spacecrypt --save
    

    Use

    // import Spacecrypt from 'spacecrypt';
    const Spacecrypt = require('spacecrypt').default;
    
    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

    Install

    npm i spacecrypt

    DownloadsWeekly Downloads

    3

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    92.3 kB

    Total Files

    6

    Last publish

    Collaborators

    • kevinejohn