1.0.1 • Published 10 years ago
klefki v1.0.1
klefki
The dependency checker
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.
Installation
  npm install klefki --save
Usage
var klefki = require('klefki'),
      _word = 'abracadabra',
      _myKey = 'myKey',
      _cipher = '';
      _cipher = klefki.ciphers.simpleSubstitution.encrypt(_word, _myKey);
      klefki.ciphers.simpleSubstitution.decrypt(_cipher) === _word; // trueTests
  npm test
Contributing
Don't be shy, send a Pull Request! Here is how:
- Fork it!
- Create your feature branch: git checkout -b my-new-feature
- Commit your changes: git commit -m 'Add some feature'
- Push to the branch: git push origin my-new-feature
- Submit a pull request :D