Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

klefki

Known Vulnerabilities Codacy Badge decov NPM Version Build Status Dependencies

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.
Pokémon klefki

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; // true

Tests

npm test

Contributing

Don't be shy, send a Pull Request! Here is how:

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

References

About

Simple substitution cipher module. 🚀

Resources

License

Stars

Watchers

Forks

Packages

No packages published