Skip to content

Repository files navigation

CODECipher

codecipher is package for cipher utilities.

Developed in python code.

The README is used to introduce the modules and provide instructions on how to install the modules, any machine dependencies it may have and any other information that should be provided before the modules are installed.

codecipher python checkercodecipher package checkerGitHub issues openGitHub contributors

Table of Contents

Installation

Used next development environment

debian linux os

codecipher python3 build

Currently there are three ways to install package

  • Install process based on using pip mechanism
  • Install process based on build mechanism
  • Install process based on setup.py mechanism
  • Install process based on docker mechanism
Install using pip

codecipher is located at pypi.org.

You can install by using pip

# python3
pip3 install codecipher
Install using build

Navigate to release page download and extract release archive.

To install codecipher, run

tar xvzf codecipher-x.y.z.tar.gz
cd codecipher-x.y.z
# python3
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py python3 -m pip install --upgrade setuptools
python3 -m pip install --upgrade pip
python3 -m pip install --upgrade build
pip3 install -r requirements.txt
python3 -m build --no-isolation --wheel
pip3 install codecipher-x.y.z-py3-none-any.whl
rm -f get-pip.py
Install using py setup

Navigate to release page download and extract release archive.

To install codecipher, locate and run setup.py with arguments

tar xvzf codecipher-x.y.z.tar.gz
cd codecipher-x.y.z
# python3
pip3 install -r requirements.txt
python3 setup.py install_lib
python3 setup.py install_egg_info
Install using docker

You can use Dockerfile to create image/container.

Dependencies

codecipher requires other modules and libraries (Python 3.x)

  • None

Usage

fromcodecipher.a1z52n62.engineimportA1Z52N62fromcodecipher.atbs.engineimportATBSfromcodecipher.b64.engineimportB64fromcodecipher.caesar.engineimportCaesarfromcodecipher.vigenere.engineimportVigenerefromcodecipher.vernam.engineimportVernamprint("A1z52N62 cipher")
cipher=A1Z52N62()
data="More Human Than Human01 Is Our Motto"# encoding dataencode_data=cipher.encode(data)
# encoded dataprint(encode_data)
# decoding datadecode_data=cipher.decode(encode_data)
# decoded dataprint(decode_data)
print(50*'=')
print("ATBS cipher")
cipher=ATBS()
data="More Human Than Human01 Is Our Motto"# encoding dataencode_data=cipher.encode(data)
# encoded dataprint(encode_data)
# decoding datadecode_data=cipher.decode(encode_data)
# decoded dataprint(decode_data)
print(50*'=')
print("B64 cipher")
cipher=B64()
data="More Human Than Human01 Is Our Motto"# encoding dataencode_data=cipher.encode(data)
# encoded dataprint(encode_data)
# decoding datadecode_data=cipher.decode(encode_data)
# decoded dataprint(decode_data)
print(50*'=')
print("Caesar cipher")
cipher=Caesar()
data="More Human Than Human01 Is Our Motto"# encoding dataencode_data=cipher.encode(data)
# encoded dataprint(encode_data)
# decoding datadecode_data=cipher.decode(encode_data)
# decoded dataprint(decode_data)
print(50*'=')
print("Vigenere cipher")
cipher=Vigenere()
data="More Human Than Human01 Is Our Motto"# encoding dataencode_data=cipher.encode(data)
# encoded dataprint(encode_data)
# decoding datadecode_data=cipher.decode(encode_data)
# decoded dataprint(decode_data)
print(50*'=')
print("Vernam cipher")
cipher=Vernam()
data="More Human Than Human01 Is Our Motto"# encoding dataencode_data=cipher.encode(data)
# encoded dataprint(encode_data)
# decoding datadecode_data=cipher.decode(encode_data)
# decoded dataprint(decode_data)
print(50*'=')

Package structure

codecipher is based on OOP.

Package structure

 codecipher/
├── a1z52n62/
│ ├── config.py
│ ├── decode/
│ │ ├── decode_algorithm.py
│ │ ├── decoder.py
│ │ └── __init__.py
│ ├── encode/
│ │ ├── encode_algorithm.py
│ │ ├── encoder.py
│ │ └── __init__.py
│ ├── engine.py
│ └── __init__.py
├── abstracts/
│ ├── ialgorithm.py
│ ├── icharacter_validator.py
│ ├── icipher_engine.py
│ ├── iconfig.py
│ ├── idata_validator.py
│ ├── idecoder.py
│ ├── iencoder.py
│ ├── __init__.py
│ └── ivalidation_engine.py
├── atbs/
│ ├── config.py
│ ├── decode/
│ │ ├── decode_algorithm.py
│ │ ├── decoder.py
│ │ └── __init__.py
│ ├── encode/
│ │ ├── encode_algorithm.py
│ │ ├── encoder.py
│ │ └── __init__.py
│ ├── engine.py
│ └── __init__.py
├── b64/
│ ├── config.py
│ ├── decode/
│ │ ├── decode_algorithm.py
│ │ ├── decoder.py
│ │ └── __init__.py
│ ├── encode/
│ │ ├── encode_algorithm.py
│ │ ├── encoder.py
│ │ └── __init__.py
│ ├── engine.py
│ └── __init__.py
├── caesar/
│ ├── config.py
│ ├── decode/
│ │ ├── decode_algorithm.py
│ │ ├── decoder.py
│ │ └── __init__.py
│ ├── encode/
│ │ ├── encode_algorithm.py
│ │ ├── encoder.py
│ │ └── __init__.py
│ ├── engine.py
│ └── __init__.py
├── __init__.py
├── py.typed
├── validation/
│ ├── character_validator.py
│ ├── data_validator.py
│ ├── __init__.py
│ └── validation_engine.py
├── vernam/
│ ├── config.py
│ ├── decode/
│ │ ├── decode_algorithm.py
│ │ ├── decoder.py
│ │ └── __init__.py
│ ├── encode/
│ │ ├── encode_algorithm.py
│ │ ├── encoder.py
│ │ └── __init__.py
│ ├── engine.py
│ └── __init__.py
└── vigenere/
├── config.py
├── decode/
│ ├── decode_algorithm.py
│ ├── decoder.py
│ └── __init__.py
├── encode/
│ ├── encode_algorithm.py
│ ├── encoder.py
│ └── __init__.py
├── engine.py
└── __init__.py
21 directories, 69 files

Code coverage

NameStmtsMissCover
codecipher/__init__.py90100%
codecipher/a1z52n62/__init__.py90100%
codecipher/a1z52n62/config.py260100%
codecipher/a1z52n62/decode/__init__.py90100%
codecipher/a1z52n62/decode/decode_algorithm.py41685%
codecipher/a1z52n62/decode/decoder.py30293%
codecipher/a1z52n62/encode/__init__.py90100%
codecipher/a1z52n62/encode/encode_algorithm.py32294%
codecipher/a1z52n62/encode/encoder.py30293%
codecipher/a1z52n62/engine.py360100%
codecipher/abstracts/__init__.py90100%
codecipher/abstracts/ialgorithm.py16194%
codecipher/abstracts/icharacter_validator.py14193%
codecipher/abstracts/icipher_engine.py17288%
codecipher/abstracts/iconfig.py230100%
codecipher/abstracts/idata_validator.py14193%
codecipher/abstracts/idecoder.py10280%
codecipher/abstracts/iencoder.py10280%
codecipher/abstracts/ivalidation_engine.py18289%
codecipher/atbs/__init__.py90100%
codecipher/atbs/config.py260100%
codecipher/atbs/decode/__init__.py90100%
codecipher/atbs/decode/decode_algorithm.py28389%
codecipher/atbs/decode/decoder.py30293%
codecipher/atbs/encode/__init__.py90100%
codecipher/atbs/encode/encode_algorithm.py28389%
codecipher/atbs/encode/encoder.py30293%
codecipher/atbs/engine.py36197%
codecipher/b64/__init__.py90100%
codecipher/b64/config.py260100%
codecipher/b64/decode/__init__.py90100%
codecipher/b64/decode/decode_algorithm.py32778%
codecipher/b64/decode/decoder.py30293%
codecipher/b64/encode/__init__.py90100%
codecipher/b64/encode/encode_algorithm.py27389%
codecipher/b64/encode/encoder.py30293%
codecipher/b64/engine.py36294%
codecipher/caesar/__init__.py90100%
codecipher/caesar/config.py260100%
codecipher/caesar/decode/__init__.py90100%
codecipher/caesar/decode/decode_algorithm.py41295%
codecipher/caesar/decode/decoder.py30293%
codecipher/caesar/encode/__init__.py90100%
codecipher/caesar/encode/encode_algorithm.py41295%
codecipher/caesar/encode/encoder.py30293%
codecipher/caesar/engine.py36294%
codecipher/validation/__init__.py90100%
codecipher/validation/character_validator.py17194%
codecipher/validation/data_validator.py19195%
codecipher/validation/validation_engine.py24483%
codecipher/vernam/__init__.py90100%
codecipher/vernam/config.py260100%
codecipher/vernam/decode/__init__.py90100%
codecipher/vernam/decode/decode_algorithm.py44589%
codecipher/vernam/decode/decoder.py30293%
codecipher/vernam/encode/__init__.py90100%
codecipher/vernam/encode/encode_algorithm.py44589%
codecipher/vernam/encode/encoder.py30293%
codecipher/vernam/engine.py360100%
codecipher/vigenere/__init__.py90100%
codecipher/vigenere/config.py260100%
codecipher/vigenere/decode/__init__.py90100%
codecipher/vigenere/decode/decode_algorithm.py40392%
codecipher/vigenere/decode/decoder.py30293%
codecipher/vigenere/encode/__init__.py90100%
codecipher/vigenere/encode/encode_algorithm.py40392%
codecipher/vigenere/encode/encoder.py30293%
codecipher/vigenere/engine.py360100%
Total15419094%

Docs

documentation status

More documentation and info at

Contributing

Contributing to codecipher

Copyright and Licence

License: GPL v3License

Copyright (C) 2021 - 2026 by electux.github.io/codecipher

codecipher is free software; you can redistribute it and/or modify it under the same terms as Python itself, either Python version 3.x or, at your option, any later version of Python 3 you may have available.

Lets help and support PSF.

Python Software Foundation

Donate

Releases

Packages

Used by

Contributors

Languages