Home > Software design >  Removing strings from Go binary
Removing strings from Go binary

Time:09-28

How to remove strings that starts with go.buildid.internal.... in the build binary. It seems that it also lists all imports and bunch of directories. I did not find anything related to this.

enter image description here

What are these used for anyway? If its not needed how can I remove these. Note that I already build with these flags go build -ldflags "-w -s" -trimpath

CodePudding user response:

The procedure for what you are asking for is called: obfuscation.

Obfuscate only string:

Obfuscate all:

  • Related