{"id":20667743,"url":"https://github.com/shamallakshan/binswap","last_synced_at":"2026-05-18T11:03:52.890Z","repository":{"id":104122826,"uuid":"469390221","full_name":"ShamalLakshan/BinSwap","owner":"ShamalLakshan","description":"A simple string encoding algorithm I wrote in Python.","archived":false,"fork":false,"pushed_at":"2024-08-08T15:28:05.000Z","size":685,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T15:58:52.197Z","etag":null,"topics":["binary","binswap","decode","decrypt","encode","encrypt","hex","hexadecimal","python","reverse","string-encryption"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ShamalLakshan.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-13T14:08:26.000Z","updated_at":"2024-08-08T15:28:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"26f298a9-6efe-4804-b62b-d0dd802b27a4","html_url":"https://github.com/ShamalLakshan/BinSwap","commit_stats":null,"previous_names":["shamallakshan/binswap"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ShamalLakshan/BinSwap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShamalLakshan%2FBinSwap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShamalLakshan%2FBinSwap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShamalLakshan%2FBinSwap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShamalLakshan%2FBinSwap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ShamalLakshan","download_url":"https://codeload.github.com/ShamalLakshan/BinSwap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ShamalLakshan%2FBinSwap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264341083,"owners_count":23593294,"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":["binary","binswap","decode","decrypt","encode","encrypt","hex","hexadecimal","python","reverse","string-encryption"],"created_at":"2024-11-16T19:44:49.556Z","updated_at":"2026-05-18T11:03:52.884Z","avatar_url":"https://github.com/ShamalLakshan.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BinSwap\n\nA lightweight, key-based text encoder/decoder implementing XOR encryption with binary manipulation. Designed for personal, low-security encoding tasks.\n\n## Features\n\n- **Key-based encryption** using XOR cipher\n- **Binary bit reversal** for additional obfuscation\n- **Dual output formats**: Base-4 (Quaternary) and Hexadecimal\n- **Text and file operations** with intuitive TUI\n- **Cross-platform** Python implementation\n\n## How It Works\n![](./encryption.png)\n\n### Encryption Process\n\n1. **Extend Key**: Repeat encryption key to match input length\n2. **XOR Operation**: Apply XOR cipher using extended key\n3. **Binary Conversion**: Convert result to 8-bit binary\n4. **Bit Reversal**: Reverse each byte for obfuscation\n5. **Format Encoding**: Output as Base-4 or Hexadecimal\n\n### Example\n\n```\nInput:  \"hello\"\nKey:    \"secret\"\nOutput: \"d8e0781450\" (Hexadecimal)\n```\n\n## Requirements\n\nPython 3.6 or higher (no external dependencies)\n\n## Security Notice\n\n**WARNING**: BinSwap is intended for personal, low-security use only. Not cryptographically secure.\n\n## Technical Details\n\n- **Algorithm**: XOR cipher with binary bit reversal\n- **Output formats**: Base-4 (quaternary) and Hexadecimal\n\n---\n\n**Remember**: Always keep your encryption key safe. Without it, encoded data cannot be recovered.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshamallakshan%2Fbinswap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshamallakshan%2Fbinswap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshamallakshan%2Fbinswap/lists"}