{"id":19068485,"url":"https://github.com/codewithswastik/dcoder","last_synced_at":"2025-04-28T13:22:13.174Z","repository":{"id":54817051,"uuid":"332151315","full_name":"CodeWithSwastik/dcoder","owner":"CodeWithSwastik","description":"This is the source code of \"dcoder\" which a python module that can decode/encode text in various ciphers.","archived":false,"fork":false,"pushed_at":"2021-03-24T02:58:47.000Z","size":2823,"stargazers_count":21,"open_issues_count":0,"forks_count":3,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-14T08:45:35.676Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CodeWithSwastik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-23T07:17:25.000Z","updated_at":"2024-04-16T10:07:18.000Z","dependencies_parsed_at":"2022-08-14T03:40:48.062Z","dependency_job_id":null,"html_url":"https://github.com/CodeWithSwastik/dcoder","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithSwastik%2Fdcoder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithSwastik%2Fdcoder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithSwastik%2Fdcoder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeWithSwastik%2Fdcoder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeWithSwastik","download_url":"https://codeload.github.com/CodeWithSwastik/dcoder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223772079,"owners_count":17199977,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T01:09:09.240Z","updated_at":"2024-11-09T01:09:09.904Z","avatar_url":"https://github.com/CodeWithSwastik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dcoder 0.2.1\n[![Downloads](https://static.pepy.tech/personalized-badge/dcoder?period=total\u0026units=international_system\u0026left_color=brightgreen\u0026right_color=orange\u0026left_text=Downloads)](https://pepy.tech/project/dcoder)\n\n\ndcoder is a python module that provides various functions for decoding/encoding text. It also has functions for encrypting or decrypting text in various ciphers.\n\n\nPyPI: https://pypi.org/project/dcoder/ \u003cbr\u003e\nDocs: https://dcoder.readthedocs.io/en/latest/\n\n## Installation\n\nYou can install released versions of dcoder from the Python Package Index with pip or a similar tool:\n\n\n**Stable Release:** `pip install dcoder`\u003cbr\u003e\n**Working Version:** `pip install git+https://github.com/CodeWithSwastik/dcoder.git`\n\n\n## Usage:\n```python\n\u003e\u003e\u003e import dcoder\n\n\u003e\u003e\u003e dcoder.text2hex(\"Hello!\") #Encodes the string and returns the hex string\n'48 65 6c 6c 6f 21'\n\u003e\u003e\u003e dcoder.hex2text(\"48 69 20 74 68 65 72 65 21\") #Decodes the hex string and returns the plain text\n'Hi there!'\n\n\u003e\u003e\u003e dcoder.text2caesar(\"How are you?\") #Encrypts the text in caesar's cipher and returns it\n'Krz duh brx?'\n\u003e\u003e\u003e dcoder.caesar2text(\"L dp ilqh, wkdqn brx.\") #Decrypts the cipher text and returns the decrypted text\n'I am fine, thank you.'\n```\n\n\n\n## Functions available:\n\nThe current list of functions available are:\n    \nEncoding: \n```python\ntext2bin(text)\ntext2oct(text)\ntext2hex(text)\ntext2ascii(text)\n ```\nDecoding:\n ```python\nbin2text(binary_text)\noct2text(oct_text)\nhex2text(hex_text)\nascii2text(ascii_text)\n```\nEncryption:\n ```python\ntext2atbash(text)\ntext2caesar(text, shift = 3)\ntext2railfence(text, key = 3)\n```\nDecryption:\n ```python\natbash2text(encrypted_text)\ncaesar2text(encrypted_text, shift = 3)\ncaesarBruteforce(encrypted_text)\nrailfence2text(cipher, key = 3)\nrailfenceBruteforce(encrypted_text)\n```\n\nMisc:\n```python\nreverse(text)\ncapitalLetterCipher(ciphertext)\nfirstLetterCipher(ciphertext)\n```\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithswastik%2Fdcoder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewithswastik%2Fdcoder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewithswastik%2Fdcoder/lists"}