Skip to content

Commit 88f75e2

Browse files
committed
updating README.md
1 parent 4266eae commit 88f75e2

1 file changed

Lines changed: 33 additions & 4 deletions

File tree

README.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,40 @@
1-
21
## jadx-string-decoder
32

4-
A JADX plugin that detects likely Base64-encoded string constants during decompilation and annotates them with a decoded comment inline.
3+
A JADX plugin that detects likely encoded string constants during decompilation and annotates them with decoded comments inline.
4+
5+
### Features
6+
7+
**Base64 string detection** — scans string constants in method bodies, and field initializers. When a string looks to be Base64 encoded, a `// b64: <decoded>` comment is added next to it.
8+
9+
**Byte array string detection** — scans `byte[]` fields initialised with literal byte arrays. When the bytes decode as valid UTF-8 with sufficient printable characters, a `// bytes: "<string>"` comment is added.
510

6-
Install using location id: `github:nklapste:jadx-string-decoder`
11+
### Installation
12+
13+
In jadx-gui: **Plugins → Install plugin** and enter the location id:
14+
15+
```
16+
github:nklapste:jadx-string-decoder
17+
```
718

819
In jadx-cli:
20+
921
```bash
10-
jadx plugins --install "github:nklapste:jadx-string-decoder"
22+
jadx plugins --install "github:nklapste:jadx-string-decoder"
23+
```
24+
25+
### Example output
26+
27+
```java
28+
// b64: Hello, World!
29+
private static final String ENCODED = "SGVsbG8sIFdvcmxkIQ==";
30+
31+
void example() {
32+
decode(new String[]{"eHBvc2Vk", "ZnJpZGE=", "Z3Vt"}); //
33+
// b64[0]: xposed
34+
// b64[1]: frida
35+
// b64[2]: gum
36+
}
37+
38+
// bytes: "Hello, World!"
39+
private static final byte[] MSG = {72, 101, 108, 108, 111, 44, 32, 87, 111, 114, 108, 100, 33};
1140
```

0 commit comments

Comments
 (0)