unixpickle / gobfuscate

Obfuscate Go binaries and packages
BSD 2-Clause "Simplified" License
1.45k stars 157 forks source link

Is it possible to just obfuscate string constants and/or string variables #31

Open danmartinj opened 4 years ago

danmartinj commented 4 years ago

Hello,

I am trying to understand this tool better. Currently, I have a single file go program within my golang workspace and I have some string constants I would like to obfuscate. I tried running the tool a number of different ways such as:

gobfuscate program ./out gobfuscate -noencrypt program ./out etc.

And the primary problem I am getting is some of my packages could not be imported (cannot find package). It seems like these third party libraries are the problem when all I want to do is obfuscate a few global string constants which seems like it should not be that hard.

Is there an example I can use to do this, or is this not supported, or maybe I am just missing something. Any suggestions would be nice.

Thanks

danilofaria commented 4 years ago

i would like to know this too