GithubHelp home page GithubHelp logo

codewithswastik / dcoder Goto Github PK

View Code? Open in Web Editor NEW
21.0 4.0 3.0 2.76 MB

This is the source code of "dcoder" which a python module that can decode/encode text in various ciphers.

License: MIT License

Python 100.00%

dcoder's Introduction

dcoder 0.2.1

Downloads

dcoder is a python module that provides various functions for decoding/encoding text. It also has functions for encrypting or decrypting text in various ciphers.

PyPI: https://pypi.org/project/dcoder/
Docs: https://dcoder.readthedocs.io/en/latest/

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)
railfenceBruteforce(encrypted_text)

Misc:

reverse(text)
capitalLetterCipher(ciphertext)
firstLetterCipher(ciphertext)

dcoder's People

Contributors

0xflotus avatar codewithswastik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dcoder's Issues

bin2text() breaks if no spaces are used

Like I said in the title, bin2text() breaks if no spaces are used.

image

This may also happen in the other decoding functions from what I see in the source code though I haven't tried them myself.

Documentation for the same?

Is there a documentation link? Is there going to be documentation?
Because in the README, there are quite a few functions listed.

Would this have some documentation, for the arguments and classes, functions. Is the documentation being made?
For me to download the module I would need to find some use for it, and without docs no module is good.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.