A module that can decode/encode text in various ciphers.
Project description
dcoder v0.1.4
This is module provides various functions for decoding/encoding text. It also has functions for encrypting or decrypting text in various ciphers.
Github: https://github.com/CodeWithSwastik/dcoder
Installation
You can install released versions of dcoder from the Python Package Index with pip or a similar tool:
Stable Release: pip install dcoder
Working Version: pip install git+https://github.com/CodeWithSwastik/dcoder.git
Usage:
>>> import dcoder
>>> dcoder.text2hex("Hello!") #Encodes the string and returns the hex string
'48 65 6c 6c 6f 21'
>>> dcoder.hex2text("48 69 20 74 68 65 72 65 21") #Decodes the hex string and returns the plain text
'Hi there!'
>>> dcoder.text2caesar("How are you?") #Encrypts the text in caesar's cipher and returns it
'Krz duh brx?'
>>> dcoder.caesar2text("L dp ilqh, wkdqn brx.") #Decrypts the cipher text and returns the decrypted text
'I am fine, thank you.'
Functions available:
The current list of functions available are:
Encoding:
text2bin(text)
text2oct(text)
text2hex(text)
text2ascii(text)
Decoding:
bin2text(binary_text)
oct2text(oct_text)
hex2text(hex_text)
ascii2text(ascii_text)
Encryption:
text2atbash(text)
text2caesar(text, shift = 3)
text2railfence(text, key = 3)
Decryption:
atbash2text(encrypted_text)
caesar2text(encrypted_text, shift = 3)
caesarBruteforce(encrypted_text)
railfence2text(cipher, key = 3)
Misc:
reverse(text)
capitalLetterCipher(ciphertext)
firstLetterCipher(ciphertext)
CHANGE LOG
0.1.4 (26/01/2021)
- Minor bug fixes
0.1.3 (26/01/2021)
- Minor bug fixes
0.1.2 (25/01/2021)
- Minor bug fixes
- Reorganized the code and added appropriate comments
0.1.1 (25/01/2021)
- Reorganized the code and added comments
- Added 2 misc functions capitalLetterCipher() and firstLetterCipher()
0.1.0 (24/01/2021)
- Fixed Bugs
- Added functions for encoding/decoding text in ascii.
0.0.3 (24/01/2021)
- Added functions for encoding/decoding text in octal.
0.0.2 (24/01/2021)
- Added functions for encrypting/encrypting text in the RailFence/Zig-Zag cipher.
0.0.1 (23/01/2021)
- Inititial Release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dcoder-0.1.4.tar.gz
(5.0 kB
view hashes)