{"id":50852986,"url":"https://github.com/zjns/jadx-string-decrypt-plugin","last_synced_at":"2026-06-14T15:42:52.760Z","repository":{"id":361141136,"uuid":"1253259446","full_name":"zjns/jadx-string-decrypt-plugin","owner":"zjns","description":"Generic JADX string decrypt plugin","archived":false,"fork":false,"pushed_at":"2026-06-09T10:45:05.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-09T12:21:19.547Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zjns.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-29T09:39:04.000Z","updated_at":"2026-06-09T10:46:32.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zjns/jadx-string-decrypt-plugin","commit_stats":null,"previous_names":["zjns/jadx-string-decrypt-plugin"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zjns/jadx-string-decrypt-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjns%2Fjadx-string-decrypt-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjns%2Fjadx-string-decrypt-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjns%2Fjadx-string-decrypt-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjns%2Fjadx-string-decrypt-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zjns","download_url":"https://codeload.github.com/zjns/jadx-string-decrypt-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zjns%2Fjadx-string-decrypt-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34326240,"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":[],"created_at":"2026-06-14T15:42:52.136Z","updated_at":"2026-06-14T15:42:52.749Z","avatar_url":"https://github.com/zjns.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# String Decrypt Plugin\n\nGeneric JADX plugin template for replacing known string decrypt method calls with decoded string constants during decompilation.\n\nIt follows the approach described in jadx discussion #2742:\n\n- register an after-load pass to decide whether the plugin should run for the loaded app\n- register a decompile pass that scans invoke instructions\n- when the configured decrypt method is called with constant arguments, evaluate that method body and replace the invoke with a `ConstStringNode`\n\n## Build\n\n```bash\n./gradlew clean test dist\n```\n\nThe plugin jar is written to:\n\n```text\nbuild/dist/jadx-string-decrypt-plugin-dev.jar\n```\n\nInstall it:\n\n```bash\njadx plugins --install-jar build/dist/jadx-string-decrypt-plugin-dev.jar\n```\n\n## Options\n\nDefault target method:\n\n```text\nLcom/example/S;-\u003edec(Ljava/lang/String;)Ljava/lang/String;\n```\n\nConfigure one or more decrypt methods:\n\n```bash\njadx app.apk \\\n  -Pstring-decrypt.methodSignatures='Lcom/example/S;-\u003edec(Ljava/lang/String;)Ljava/lang/String;,Lcom/example/T;-\u003edecode([B[B)Ljava/lang/String;'\n```\n\nSupported signature forms:\n\n```text\nLcom/example/S;-\u003edec(Ljava/lang/String;)Ljava/lang/String;\ncom.example.S.dec(Ljava/lang/String;)Ljava/lang/String;\n```\n\nOptional package gate:\n\n```bash\njadx app.apk -Pstring-decrypt.targetPackage='com.example.'\n```\n\n## Relationship Between `methodSignatures` And `decoder`\n\n`string-decrypt.methodSignatures` identifies the decrypt method calls to replace. By default, that same method body is treated as the decrypt algorithm:\n\n```text\nmethodSignatures -\u003e find invoke -\u003e extract constant args -\u003e evaluate matched method body -\u003e replace invoke with string\n```\n\nSo for the default signature:\n\n```text\nLcom/example/S;-\u003edec(Ljava/lang/String;)Ljava/lang/String;\n```\n\nthe plugin will try to execute `dec(String)` with the constant string found at the call site.\n\n`string-decrypt.decoder` is optional. The default is `method`:\n\n```bash\njadx app.apk -Pstring-decrypt.decoder=method\njadx app.apk -Pstring-decrypt.decoder=template\njadx app.apk -Pstring-decrypt.decoder=identity\njadx app.apk -Pstring-decrypt.decoder=xor_utf8\n```\n\nUse `template`, `identity`, or `xor_utf8` only when you want to bypass method-body evaluation and force a plugin-side decoder.\n\nWhen using `xor_utf8`, multiple decrypt methods can be matched by passing a comma-separated signature list:\n\n```bash\njadx app.apk \\\n  -Pstring-decrypt.decoder=xor_utf8 \\\n  -Pstring-decrypt.methodSignatures='Lcom/example/S;-\u003edecA([B[B)Ljava/lang/String;,Lcom/example/T;-\u003edecB([B[B)Ljava/lang/String;'\n```\n\n## What It Handles\n\n- `String -\u003e String` decrypt calls when the argument is a constant string\n- `[B, [B -\u003e String` style calls when byte arrays are constants from `fill-array-data`\n- `filled-new-array` byte literals if JADX has already wrapped them\n- simple decrypt method bodies with constants, moves, arithmetic, byte arrays, array access, loops, branches, and `new String(byte[])`\n\nIf an argument is not constant, the method body uses unsupported instructions, or evaluation returns `null`, the original invoke is left unchanged.\n\n## License\n\nThis project is licensed under the Apache License 2.0. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjns%2Fjadx-string-decrypt-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzjns%2Fjadx-string-decrypt-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzjns%2Fjadx-string-decrypt-plugin/lists"}