Skip to content

Commit 25fc094

Browse files
committed
garble: add page
1 parent d185054 commit 25fc094

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

pages/common/garble.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# garble
2+
3+
> Obfuscate Go builds by stripping information and renaming symbols.
4+
> More information: <https://github.com/burrowers/garble>.
5+
6+
- Build an obfuscated binary for the package in the current directory:
7+
8+
`garble build`
9+
10+
- Build with obfuscated literals such as strings and numbers:
11+
12+
`garble -literals build`
13+
14+
- Build a stripped and minimized binary for extra obfuscation:
15+
16+
`garble -tiny build`
17+
18+
- Build an obfuscated binary with a custom seed for reproducible builds:
19+
20+
`garble -seed={{seed}} build`
21+
22+
- Run tests with obfuscated packages:
23+
24+
`garble test`
25+
26+
- De-obfuscate a stack trace from an obfuscated binary:
27+
28+
`garble reverse < {{path/to/stack_trace.txt}}`

0 commit comments

Comments
 (0)