pyktc

A Python implementation of a basic keyword transposition cipher


Keywords
cipher, keyword, transposition, ktc
License
MIT
Install
pip install pyktc==1.0.0

Documentation

Python Keyword Transposition Cipher

An implementation of a basic keyword transposition cipher in Python.

Installation

pip install .

Usage

  • Initialize from pyktc.cipher import Cipher; ktc = Cipher('secret')
  • Encrypt ktc.encrypt('CRYPTOLOGY')
  • Decrypt ktc.decrypt('MNYDX WHWJY')

Limitations

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