Please tell me how to obfuscate the code

Hi @bluefire, code obfuscation does not prevent source code leakage, it only makes it more difficult to reverse-engineer the code.

See e.g. these forum topics:

And this thread in golang-nuts:

Any solution to hide my source code written in Go and make it a library to develop in Go as well

Some suggestions from the above sources:

  • Do not deliver a binary to your customers, make it a Web service instead
  • Search for better customers if you cannot trust your current ones
  • Protect your rights legally

This being said, there are some obfuscation projects around. Searching the Web for “golang code obfuscation”, I found burrowers/garble: Obfuscate Go builds and unixpickle/gobfuscate: Obfuscate Go binaries and packages, and there are probably more, but really, don’t put your bets on obfuscation.

4 Likes