{"id":22534945,"url":"https://github.com/twentyformoney/obfuscator_cpp","last_synced_at":"2025-07-14T18:33:14.018Z","repository":{"id":266792821,"uuid":"899365297","full_name":"twentyformoney/Obfuscator_CPP","owner":"twentyformoney","description":"an Simple Obfuscator for cpp file. made in c++","archived":false,"fork":false,"pushed_at":"2024-12-06T09:37:07.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T06:15:17.400Z","etag":null,"topics":["cplusplus","obfuscation","obfuscator","scripting","tools"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twentyformoney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-12-06T05:48:45.000Z","updated_at":"2024-12-06T09:37:10.000Z","dependencies_parsed_at":"2024-12-06T07:28:21.119Z","dependency_job_id":null,"html_url":"https://github.com/twentyformoney/Obfuscator_CPP","commit_stats":null,"previous_names":["twentyformoney/obfuscator_cpp"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/twentyformoney/Obfuscator_CPP","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twentyformoney%2FObfuscator_CPP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twentyformoney%2FObfuscator_CPP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twentyformoney%2FObfuscator_CPP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twentyformoney%2FObfuscator_CPP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twentyformoney","download_url":"https://codeload.github.com/twentyformoney/Obfuscator_CPP/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twentyformoney%2FObfuscator_CPP/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265331812,"owners_count":23748500,"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":["cplusplus","obfuscation","obfuscator","scripting","tools"],"created_at":"2024-12-07T10:05:59.029Z","updated_at":"2025-07-14T18:33:13.979Z","avatar_url":"https://github.com/twentyformoney.png","language":"C++","readme":"# C++ Code Obfuscator\n\nA simple C++ code obfuscator that uses Base64 encoding and macro obfuscation techniques to make your code harder to read while maintaining functionality.\n\n## Features\n\n- Base64 encoding of source code\n- Macro-based identifier obfuscation\n- Automatic compilation and execution of obfuscated code\n- Works with any C++ source file\n\n## Usage\n\n1. Compile the obfuscator:\n```bash\ng++ Obfuscator.cpp -o obfuscator\n```\n\n## Example\n\n### Original Code (example.cpp):\n```cpp\n#include \u003ciostream\u003e\n\nint main() {\n    std::cout \u003c\u003c \"Hello, World!\" \u003c\u003c std::endl;\n    return 0;\n}\n```\n\n### Obfuscated (obfuscated_example.cpp):\n```cpp\n\n\n#include \u003ciostream\u003e\n#include \u003cfstream\u003e\n#include \u003cstring\u003e\n#include \u003cvector\u003e\n#include \u003ccstdlib\u003e\n\n#define _ using\n#define __ namespace\n#define ___ std\n#define ____ string\n#define _____ int\n#define ______ main\n#define _______ return\n#define ________ system\n#define _________ fstream\n#define __________ ios\n#define ___________ rdbuf\n#define ____________ open\n#define _____________ close\n#define ______________ out\n#define _______________ trunc\n#define ________________ class\n#define _________________ public\n#define __________________ static\n#define ___________________ ________\n#define ____________________ constexpr\n\n_ __ ___;\n\nstatic const char* encoded = \"I2luY2x1ZGUg\" \"PGlvc3RyZWFt\" \"PgoKaW50IG1h\" \"aW4oKSB7CiAg\" \"ICBzdGQ6OmNv\" \"dXQgPDwgIkhl\" \"bGxvLCBXb3Js\" \"ZCEiIDw8IHN0\" \"ZDo6ZW5kbDsK\" \"ICAgIHJldHVy\" \"biAwOwp9\";\n\n________________ ___________________ {\n    _________________:\n        static ____________________ char b64_table[] = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n        static ___::vector\u003c_____\u003e T;\n        static bool initialized;\n\n        static void init_table() {\n            if (!initialized) {\n                T.resize(256, -1);\n                for(_____ i = 0; i \u003c 64; i++) T[b64_table[i]] = i;\n                initialized = true;\n            }\n        }\n\n        __________________ ___::____ ______________________(const ___::____\u0026 input) {\n            init_table();\n            ___::____ out;\n            out.reserve(input.size() * 3 / 4);\n            \n            _____ val = 0, valb = -8;\n            for(unsigned char c : input) {\n                if(c == '=') break;\n                if(T[c] == -1) continue;\n                val = (val \u003c\u003c 6) + T[c];\n                valb += 6;\n                if(valb \u003e= 0) {\n                    out += char((val \u003e\u003e valb) \u0026 0xFF);\n                    valb -= 8;\n                }\n            }\n            _______ out;\n        }\n};\n\n// Initialize static members outside the class\nbool ___________________::initialized = false;\n___::vector\u003c_____\u003e ___________________::T;\n\n_____ ______() {\n    ___::____ 编码 = encoded;\n    ___::____ 解码 = ___________________::______________________(编码);\n    ___::ofstream 临时文件(\"temp.cpp\", ___::ios::binary);\n    临时文件.write(解码.c_str(), 解码.size());\n    临时文件.close();\n    \n    ________(\"g++ temp.cpp -o temp \u0026\u0026 ./temp\");\n    ___::remove(\"temp.cpp\");\n    ___::remove(\"temp\");\n    \n    _______ 0;\n}\n\n\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwentyformoney%2Fobfuscator_cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwentyformoney%2Fobfuscator_cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwentyformoney%2Fobfuscator_cpp/lists"}