Hydrogen is a utility to protect your code.
Hydrogen uses garble for compilation and upx for compression
go install github.com/TryZeroOne/hydrogen@latest
hydrogen <BUILD/PROTECT> <FILE TO PROTECT/OUTPUT FILE> -f <FLAGS>
Build Flags
o Obfuscate files
j Junk code
g Garbage
p Custom entry point
c Compress
e Encrypt
Protect Flags
c Compress
e Encrypt
g Garbage
Build Examples
hydrogen build build.exe
hydrogen build build.exe -f jgc
Protect Examples
hydrogen protect f.bin
hydrogen protect f.bin -f cg