怎么样保护Golang源代码 [英] What about protection for Golang source code

查看:991
本文介绍了怎么样保护Golang源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其实,我是一名PHP开发人员。我想卖我的PHP产品。



所以,我想保护PHP中的一些主要源代码。但在PHP中是不可能的。



我也了解Golang。因此,我想在golang代码中构建秘密算法并编译为二进制文件。



最后,我想用PHP代码&&二进制程序。



我的疑问是:

当我编译golang源代码转换为二进制文件。
是否可以从二进制文件中获取golang源代码?

解决方案

不,如果他们确实想要,他们可以反汇编这个二进制文件,并猜测这个算法在程序集中做了些什么,但是,这适用于所有语言。



如果它运行,它可以被拆卸,它可以是坏了。


Actually, I'm a PHP developer. I want to sell my PHP product.

So, I want to protect some major source code in PHP. But it's impossible in PHP.

I know Golang also. So, I want to to build secret algorithm in golang code and compile into binary.

Finally I want to protect my PHP major algorithm with PHP code && binary program.

My doubt is:

When I'm compiling golang source code into binary file. Is it possible to grab golang source code from binary file ?

解决方案

No, if they really really want to, they can disassemble the binary and guess what the algorithm does from the assembly, this however, applies to all languages.

If it runs, it can be disassembled and it can be broken.

这篇关于怎么样保护Golang源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆