{"repo":"burrowers/garble","free":true,"listed":false,"github":"https://github.com/burrowers/garble","clone":"git clone https://github.com/burrowers/garble.git","description":"Obfuscate Go builds","language":"Go","stars":5640,"topics":["golang","obfuscation","build","code-obfuscator","binary"],"license":"BSD-3-Clause","category":"dev-tools","readme_excerpt":"garble go install mvdan.cc/garble@latest # or @master Obfuscate Go code by wrapping the Go toolchain. Requires Go 1.26 or later. garble build [build flags] [packages] The tool also supports garble test to run tests with obfuscated code, garble run to obfuscate and execute simple programs, garble reverse to de-obfuscate text such as stack traces, and garble bug to file a pre-filled bug report. Run garble -h to see all available commands and flags. Purpose Produce a binary that works as well as a regular build, but that has as little information about the original source code as possible. The tool is designed to be: Coupled with cmd/go , to support modules and build caching Deterministic and reproducible, given the same initial source code Reversible given the original source, to de-obfuscate panic stack traces Mechanism The tool wraps calls to the Go compiler and linker to transform the Go build, in order to: Replace identifiers and package paths with short base64 hashes Replace position information with short base64 hashed filenames Remove all build, module, and debug information Obfuscate literals, if the -literals flag is given Remove extra information, if the -tiny flag is given By default, the tool obfuscates all the packages being built. You can manually specify which packages to obfuscate via GOGARBLE , a comma-separated list of glob patterns matching package path prefixes. This format is borrowed from GOPRIVATE ; see go help private . Note that commands like garble bui","default_branch":null,"files":null,"tree":[],"storefront":"/r/burrowers","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/burrowers/garble/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}