Package: codecipher
CODECiphercodecipheris package for cipher utilities.Developed inpythoncode.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.Table of ContentsInstallationInstall using pipInstall using buildInstall using py setupInstall using dockerDependenciesUsagePackage structureDocsContributingCopyright and LicenceInstallationUsed next development environmentUsed next development environmentCurrently there are three ways to install packageInstall process based on using pip mechanismInstall process based on build mechanismInstall process based on setup.py mechanismInstall process based on docker mechanismInstall using pipcodecipheris located atpypi.org.You can install by using pip# python3pip3installcodecipherInstall using buildNavigate torelease pagedownload and extract release archive.To installcodecipher, runtarxvzfcodecipher-x.y.z.tar.gzcdcodecipher-x.y.z# python3wgethttps://bootstrap.pypa.io/get-pip.py
python3get-pip.pypython3-mpipinstall--upgradesetuptools
python3-mpipinstall--upgradepip
python3-mpipinstall--upgradebuild
pip3install-rrequirements.txt
python3-mbuild--no-isolation--wheel
pip3installcodecipher-x.y.z-py3-none-any.whl
rm-fget-pip.pyInstall using py setupNavigate torelease pagedownload and extract release archive.To installcodecipher, locate and run setup.py with argumentstarxvzfcodecipher-x.y.z.tar.gzcdcodecipher-x.y.z# python3pip3install-rrequirements.txt
python3setup.pyinstall_lib
python3setup.pyinstall_egg_infoInstall using dockerYou can use Dockerfile to create image/container.Dependenciescodecipherrequires other modules and libraries (Python 3.x)NoneUsagefromcodecipher.a1z52n62importA1z52N62fromcodecipher.atbsimportAlephTawBetShinfromcodecipher.b64importB64fromcodecipher.caesarimportCaesarfromcodecipher.vigenereimportVigenerefromcodecipher.vernamimportVernamprint("A1z52N62 cipher")cipher=A1z52N62()data="More Human Than Human01 Is Our Motto"# encoding datacipher.encode(data)# encoded dataprint(cipher.encode_data)# decoding datacipher.decode(cipher.encode_data)# decoded dataprint(cipher.decode_data)print(50*'=')print("AlephTawBetShin cipher")cipher=AlephTawBetShin()data="More Human Than Human01 Is Our Motto"# encoding datacipher.encode(data)# encoded dataprint(cipher.encode_data)# decoding datacipher.decode(cipher.encode_data)# decoded dataprint(cipher.decode_data)print(50*'=')print("B64 cipher")cipher=B64()data="More Human Than Human01 Is Our Motto"# encoding datacipher.encode(data)# encoded dataprint(cipher.encode_data)# decoding datacipher.decode(cipher.encode_data)# decoded dataprint(cipher.decode_data)print(50*'=')print("Caesar cipher")cipher=Caesar()data="More Human Than Human01 Is Our Motto"# encoding datacipher.encode(data,3)# encoded dataprint(cipher.encode_data)# decoding datacipher.decode(cipher.encode_data,3)# decoded dataprint(cipher.decode_data)print(50*'=')print("Vigenere cipher")cipher=Vigenere()data="More Human Than Human01 Is Our Motto"cipher.data_len=len(data)cipher.key="AYUSH"cipher.generate_key()# encoding datacipher.encode(data,cipher.key)# encoded dataprint(cipher.encode_data)# decoding datacipher.decode(cipher.encode_data,cipher.key)# decoded dataprint(cipher.decode_data)print(50*'=')print("Vernam cipher")cipher=Vernam()data="More Human Than Human01 Is Our Motto"# encoding datacipher.encode(data,"randomrandomrandom")# encoded dataprint(cipher.encode_data)# decoding datacipher.decode(cipher.encode_data,"randomrandomrandom")# decoded dataprint(cipher.decode_data)print(50*'=')Package structurecodecipheris based on OOP.Package structurecodecipher/├──a1z52n62/│├──decode.py│├──encode.py│└──__init__.py├──atbs/│├──decode.py│├──encode.py│├──__init__.py│└──lookup_table.py├──b64/│├──decode.py│├──encode.py│└──__init__.py├──caesar/│├──decode.py│├──encode.py│└──__init__.py├──__init__.py├──vernam/│├──decode.py│├──encode.py│└──__init__.py└──vigenere/├──decode.py├──encode.py├──__init__.py├──key_generator.py└──lookup_table.pyDocsMore documentation and info atcodecipher.readthedocs.iowww.python.orgContributingContributing to codecipherCopyright and LicenceCopyright (C) 2021 - 2024 byelectux.github.io/codeciphercodecipheris 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.