{"id":50851879,"url":"https://github.com/x86byte/sbox","last_synced_at":"2026-06-14T14:03:53.332Z","repository":{"id":360172063,"uuid":"1248950573","full_name":"x86byte/sbox","owner":"x86byte","description":"Compile-time AES string obfuscation for C++","archived":false,"fork":false,"pushed_at":"2026-05-26T11:42:57.000Z","size":46,"stargazers_count":97,"open_issues_count":0,"forks_count":10,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-06-14T14:03:52.303Z","etag":null,"topics":["advanced-encryption-standard","aes","aes-128","aes-decryption","aes-encryption","compile-time-obfuscation","encryption-decryption","obfuscate-strings","obfuscation","reverse-engineering","runtime-encryption","string-encoding","string-encrypt","string-encryption","string-encryption-high-resiliency"],"latest_commit_sha":null,"homepage":"","language":"C++","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/x86byte.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-25T07:49:51.000Z","updated_at":"2026-06-09T06:53:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/x86byte/sbox","commit_stats":null,"previous_names":["x86byte/sbox"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/x86byte/sbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x86byte%2Fsbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x86byte%2Fsbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x86byte%2Fsbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x86byte%2Fsbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/x86byte","download_url":"https://codeload.github.com/x86byte/sbox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/x86byte%2Fsbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34324004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["advanced-encryption-standard","aes","aes-128","aes-decryption","aes-encryption","compile-time-obfuscation","encryption-decryption","obfuscate-strings","obfuscation","reverse-engineering","runtime-encryption","string-encoding","string-encrypt","string-encryption","string-encryption-high-resiliency"],"created_at":"2026-06-14T14:03:52.723Z","updated_at":"2026-06-14T14:03:53.324Z","avatar_url":"https://github.com/x86byte.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbox - Compile-time AES string obfuscation for C++\n\nStandard solutions rely on `length + \"#\" + string`. That is trivial to reverse. \n**sbox** utilizes a `constexpr` AES-128 block cipher to mutate strings into high-entropy noise.\n\n### The Story\nDuring the Neetcode \"Encode and Decode Strings\" challenge, I ported the AES engine from my obfuscation project, **[Obfusk8](https://github.com/x86byte/Obfusk8)**. \n\nThe implementation passed in **7ms** on the first submission. Cryptographic security shouldn't be a trade-off for performance.\n\n### Features\n- **No Delimiters:** Fixed-width headers and block mutation replace predictable separators.\n- **Binary Safe:** Effortlessly handles raw payloads and null bytes.\n- **Static Stealth:** Plaintext is eliminated at compile-time. Using the provided macros, `strings.exe` (or `strings` in linux) returns zero results.\n\n### How to Use\nCheck the [EXAMPLES](https://github.com/x86byte/sbox/tree/main/EXAMPLES) folder for implementation details:\n\n1. **Multi-String Example (`sbox_test.cpp`):**\n   Demonstrates how to handle a `vector\u003cstring\u003e` using the `_OBF(str)` macro for batch processing. Useful for transit-ready obfuscation.\n   \n2. **Single String Example (`sbox_test1.cpp`):**\n   Demonstrates atomic materialization using the `ObfStr(str)` macro. Best for single variable assignments:\n   ```cpp\n   string s = ObfStr(\"ama obfuscation addicted\");\n   ```\n\n### Performance\n**7ms runtime.** \nProving that overkill can still be optimal.\n\n---\n**Author:** [x86byte](https://github.com/x86byte)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx86byte%2Fsbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fx86byte%2Fsbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fx86byte%2Fsbox/lists"}