{"id":47679757,"url":"https://github.com/miniex/ssukka","last_synced_at":"2026-04-02T13:55:47.425Z","repository":{"id":339454426,"uuid":"1157189852","full_name":"miniex/ssukka","owner":"miniex","description":"HTML obfuscation library and CLI for Rust. Renders identically in browsers but is hard for humans to read.","archived":false,"fork":false,"pushed_at":"2026-02-13T14:56:56.000Z","size":35,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-14T07:34:19.880Z","etag":null,"topics":["css","encoding","html","javascript","obfuscation","rust","web-programming"],"latest_commit_sha":null,"homepage":"https://docs.rs/ssukka","language":"Rust","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/miniex.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-02-13T14:36:39.000Z","updated_at":"2026-02-18T18:37:18.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/miniex/ssukka","commit_stats":null,"previous_names":["miniex/ssukka"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/miniex/ssukka","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniex%2Fssukka","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniex%2Fssukka/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniex%2Fssukka/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniex%2Fssukka/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miniex","download_url":"https://codeload.github.com/miniex/ssukka/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miniex%2Fssukka/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307365,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["css","encoding","html","javascript","obfuscation","rust","web-programming"],"created_at":"2026-04-02T13:55:46.875Z","updated_at":"2026-04-02T13:55:47.411Z","avatar_url":"https://github.com/miniex.png","language":"Rust","readme":"# ssukka\n\n\u003e **쓰까(ssukka)** is Busan dialect (부산 사투리) for \"mix it up\" (섞어).\n\nHTML obfuscation library and CLI for Rust. Renders identically in browsers but is hard for humans to read.\n\n## Features\n\n- **Class/ID renaming** — consistent across HTML, CSS, and JavaScript (including dynamic construction patterns)\n- **HTML entity encoding** — text and attribute values encoded as decimal/hex/named entities\n- **Tag case randomization** — `\u003cdiv\u003e` becomes `\u003cDiV\u003e`\n- **Attribute shuffling** — randomized attribute order\n- **CSS minification** — via [lightningcss](https://github.com/nicbarker/lightningcss)\n- **CSS selector unicode escaping** — `.foo` becomes `.\\66\\6f\\6f`\n- **JS string encoding** — string literals encoded as `\\xHH` / `\\uXXXX`\n- **JS minification** — comment removal and whitespace compression\n- **Comment removal** and **whitespace collapsing**\n- **Deterministic output** — seed-based RNG for reproducible results\n\n## Architecture\n\nTwo-pass streaming with [lol_html](https://github.com/cloudflare/lol-html):\n\n```mermaid\nflowchart LR\n    Input[\"Input HTML\"] --\u003e Analyze[\"Pass 1: Analyze\u003cbr/\u003eHTML · CSS · JS\"] --\u003e SM[(\"SymbolMap\")] --\u003e Transform[\"Pass 2: Transform\u003cbr/\u003eHTML · CSS · JS · JSON\"] --\u003e Output[\"Output HTML\"]\n```\n\n## Installation\n\n```bash\ncargo install ssukka\n```\n\nOr build from source:\n\n```bash\ngit clone https://github.com/miniex/ssukka.git\ncd ssukka\ncargo build --release\n```\n\n## CLI Usage\n\n```bash\n# Basic\nssukka -i input.html -o output.html\n\n# stdin/stdout\ncat input.html | ssukka \u003e output.html\n\n# With options\nssukka -i input.html -o output.html --seed 42 --no-rename --no-minify-css\n```\n\n### Options\n\n| Flag | Description |\n|------|-------------|\n| `-i, --input \u003cFILE\u003e` | Input HTML file (default: stdin) |\n| `-o, --output \u003cFILE\u003e` | Output file (default: stdout) |\n| `--seed \u003cN\u003e` | Seed for deterministic output |\n| `--no-rename` | Disable class/ID renaming |\n| `--no-minify-css` | Disable CSS minification |\n| `--no-minify-js` | Disable JS minification |\n| `--no-encode-entities` | Disable entity encoding |\n| `--no-shuffle-attrs` | Disable attribute shuffling |\n| `--no-randomize-case` | Disable tag case randomization |\n\n## Library Usage\n\n```rust\n// Simple\nlet result = ssukka::obfuscate(html)?;\n\n// With configuration\nlet result = ssukka::Obfuscator::builder()\n    .seed(42)\n    .rename_classes(true)\n    .rename_ids(true)\n    .encode_text_entities(true)\n    .minify_css(true)\n    .build()\n    .obfuscate(html)?;\n```\n\n## Limitations\n\n- JS obfuscation is basic (string encoding + minification). For advanced JS obfuscation, use a dedicated tool.\n- Dynamic class/ID construction in JS is handled via prefix detection heuristics, but highly dynamic patterns may not be caught.\n- External stylesheets and scripts are not processed.\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiex%2Fssukka","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fminiex%2Fssukka","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fminiex%2Fssukka/lists"}