amazing-shifter
v1.0.3
Published
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.
Downloads
2
Readme
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');