1.0.3 • Published 6 years ago

amazing-shifter v1.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

amazing-shifter

Simple caesar encoder-decoder written on C++. It takes key and text to encrypt/decrypt as params and returns the text encrypted with Caesar cypher.

How to run

To build the project use node-gyp:

node-gyp configure
node-gyp build

To build the pure C++ part without bindings use cmake:

mkdir build-coder
cd build-coder
cmake ..
cmake --build .

Usage example

var Coder = require('amazing-shifter');

var test = function (key, plainText) {
  console.log('Source: ' + plainText);

  var encoded = Coder.encode(key, plainText);
  console.log('Encoded: ' + encoded);
    
  var decoded = Coder.decode(key, encoded);
  console.log('Decoded: ' + decoded);
};

test('key', 'text');
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago