{"id":16980231,"url":"https://github.com/htr-tech/0xtwin","last_synced_at":"2025-04-15T01:11:55.631Z","repository":{"id":183224851,"uuid":"669790075","full_name":"htr-tech/0xTwin","owner":"htr-tech","description":"Twin-Hex Cipher Encoder/Decoder","archived":false,"fork":false,"pushed_at":"2023-07-23T13:10:25.000Z","size":4,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T01:11:35.579Z","etag":null,"topics":["capture-the-flag","cipher","cipher-algorithms","ciphertext","cryptography","ctf","ctf-challenges","ctf-tools","hackthebox","twin-cipher","twin-hex"],"latest_commit_sha":null,"homepage":"","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/htr-tech.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,"governance":null}},"created_at":"2023-07-23T12:44:05.000Z","updated_at":"2025-04-11T13:33:16.000Z","dependencies_parsed_at":"2023-07-23T14:35:10.924Z","dependency_job_id":null,"html_url":"https://github.com/htr-tech/0xTwin","commit_stats":null,"previous_names":["htr-tech/0xtwin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htr-tech%2F0xTwin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htr-tech%2F0xTwin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htr-tech%2F0xTwin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/htr-tech%2F0xTwin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/htr-tech","download_url":"https://codeload.github.com/htr-tech/0xTwin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248986314,"owners_count":21194025,"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":["capture-the-flag","cipher","cipher-algorithms","ciphertext","cryptography","ctf","ctf-challenges","ctf-tools","hackthebox","twin-cipher","twin-hex"],"created_at":"2024-10-14T01:50:27.744Z","updated_at":"2025-04-15T01:11:55.538Z","avatar_url":"https://github.com/htr-tech.png","language":"Python","readme":"# 0xTwin\nTwin-Hex Cipher Encoder/Decoder\n\n```\n    _______         ___________       .__\n    \\   _  \\ ___  __\\__    ___/_  _  _|__| ____\n    /  /_\\  \\\\  \\/  / |    |  \\ \\/ \\/ /  |/    \\\n    \\  \\_/   \\\u003e    \u003c  |    |   \\     /|  |   |  \\\n     \\_____  /__/\\_ \\ |____|    \\/\\_/ |__|___|  /\n           \\/      \\/                         \\/\n          Twin-Hex Cipher Encoder/Decoder\n\nusage: twin_cipher.py [-h] [-d] [-e] [text]\n\noptions:\n  -d, --decode  Decode Twin-Hex\n  -e, --encode  Encode to Twin-Hex\n```\n\n### What is Twin-Hex Cipher:\n In Twin-Hex Cipher, the original text gets converted into two characters at a time. I know nothing more. Check out [their website](https://www.calcresult.com/misc/cyphers/twin-hex.html)\n \n ***#HappyHacking***\n\n#\n\n### Usage:\n\nSimply **clone the repository**. Only python should be installed in your system.\n```bash\n$ git clone https://github.com/htr-tech/0xTwin\n$ cd 0xTwin\n\n# For encoding text\n$ python twin_cipher.py -e \"FLAG{THIS_IS_TWIN_CIPHER}\"\n\n# For decoding ciphertext\n$ python twin_cipher.py -d \"2uk2h36s42zt3tr32r4pg43t3gf2mh3l42s26w0\"\n```\n\n#\n\n### Why this Github Repo??\n Recently i have been participating in some CTFs. In one event I got this cipher \u0026 there was no decoder available on Github. \n \n So, I just translated the functions from `calcresult.com` in python for offline usage.\n\n#\n\n### Find Me on:\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://tahmidrayat.is-a.dev\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Socials-grey?style=for-the-badge\u0026logo=linktree\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/htr-tech\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Github-blue?style=for-the-badge\u0026logo=github\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtr-tech%2F0xtwin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhtr-tech%2F0xtwin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhtr-tech%2F0xtwin/lists"}