ovaltine

1.0.3 • Public • Published

ovaltine.js

A library for your Little Orphan Annie Secret decoder ring.

Examples

Encryption

var ovaltine = require("./index.js"),
    // The string we want to encrypt
    encrypt = "Remember to drink your ovaltine!";
 
// The offset or "pin" is set with the second arguement
console.log(ovaltine.encrypt(encrypt, 2));

Decryption

var ovaltine = require("./index.js"),
    // The string we want to decrypt (Decrypts to "thisshouldnotbeusedforpasswords")
    encrypt = "21-9-10-20-20-9-16-22-13-5-15-16-21-3-6-22-20-6-5-7-16-19-17-2-20-20-24-16-19-5-20";
 
// The offset or "pin" is set with the second arguement
console.log(ovaltine.decrypt(encrypt, 2));

Installation

  $ [sudo] npm install ovaltine --save

Readme

Keywords

none

Package Sidebar

Install

npm i ovaltine

Weekly Downloads

3

Version

1.0.3

License

MIT

Last publish

Collaborators

  • frederickgeek8