Tested!
All code is tested with mocha.
Simple substitution cipher module. It basically consists of substituting every plaintext character for a different ciphertext character. It differs from the Caesar cipher in that the cipher alphabet is not simply the alphabet shifted, it is completely jumbled.
All code is tested with mocha.
Folow the steps above, simple.
That you can easy understand.
npm install klefki --save
var klefki = require('klefki'),
_word = 'abracadabra',
_myKey = 'myKey',
_cipher = '';
_cipher = klefki.ciphers.simpleSubstitution.encrypt(_word, _myKey);
klefki.ciphers.simpleSubstitution.decrypt(_cipher) === _word; // true
npm test
Don't be shy, send a Pull Request! Here is how:
git checkout -b my-new-feature
git commit -m 'Add some feature'
git push origin my-new-feature