I think it is best to run your code on an encrypted disk. So it cannot be 
stolen by taking away the hard-drive.
Furthermore if the config and log files are in other folders, it is okay to 
shut down the encrypted drive I guess.
In that case even it is running in memory, the hacker cannot get access to 
the program file on removed encrypted disk.

Beyond that, there is  few software in the world up till now I believe, 
could decode your program back to go source code.
And it is a better practice to put all the codes together rather then 
dividing it to smaller pieces to make more complexity.

Zhaoxun

在2022年3月18日星期五 UTC+8 09:30:21<Ian Lance Taylor> 写道:

> On Thu, Mar 17, 2022 at 6:46 AM bbb tt <fort...@gmail.com> wrote:
> >
> > I want to encrypt my algorithm library, is there any good way in Go. My 
> library is used in both Windows and Linux
>
> For a security issue like this it's essential to define the attack you
> want to defend against.
>
> The nature of Go is such that against a sophisticated attacker the
> best you can do in practice is to hide source code comments, or to run
> your program only as a secure service that is only accessible over a
> network. And to do that you don't need to do anything special at all.
>
> Ian
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/5050ddc7-6a56-415a-923a-58caa6dac54dn%40googlegroups.com.

Reply via email to