1.1.10 • Published 2 years ago

js-ktc v1.1.10

Weekly downloads
1
License
MIT
Repository
github
Last release
2 years ago

Javascript Keyword Transposition Cipher

Node.js Package CodeQL contributions welcome

An implementation of a basic keyword transposition cipher in Javascript with zero dependencies.

const C = require('js-ktc');
let ktc = new C('secret')

ktc.encrypt('CRYPTOLOGY')
// 'JHQSU XFXBQ '

ktc.decrypt('JHQSU XFXBQ')
// 'CRYPT OLOGY '

✅ Easy to use ✅ Extensible ✅ Test coverage ✅ Lots of comments (good for education) ✅ No bloat (zero dependencies) ✅ MIT license


Installation

npm install js-ktc


Usage

  • Require const C = require('js-ktc');
  • Initialize let ktc = new C('secret')
  • Encrypt ktc.encrypt('CRYPTOLOGY')
  • Decrypt ktc.decrypt('JHQSU XFXBQ')

Limitations

The basic implementation only works with A-Z though it can easily be extended to support other characters.


Development


See the CONTRIBUTING.md file for instructions on how to contribute to this project.

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.10

2 years ago

1.0.2

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

6 years ago

1.0.0

6 years ago