有没有一种方法可以获取 Perl 代码并“安全”地使用 Perl 代码?它?
有一些 Perl我想转售代码,但不希望代码可见,而只是可执行。
有没有一种方法可以“保护”代码,如果有,执行此操作的要求是什么,与之相关的风险(逆向工程的容易程度以及对运行时可能产生的影响)。
Possible Duplicates:
How can I obfuscate my Perl script to make it difficult to reverse engineer?
Is there a good obfuscater for Perl code?
Have some Perl code I'd like to resell, but don't want the code to be viewable, just executable.
Is there a way to "secure" the code and if so, what would be the requirements to do this, risks related to it in terms of how easy it'd be to reverse engineer and possible effects on run-time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
没有万无一失的方法。坚定的攻击者总能找到源代码的某个版本。
也就是说,Acme::Bleach让它变得更加困难。
There is no sure-fire way. A determined attacker can always find some version of the source.
That said, Acme::Bleach makes it more difficult.
执行此操作的唯一方法是将其编译为机器代码,不幸的是,这对于 perl 来说是不可能的。请参阅编辑您也可以对代码进行混淆以保护它,尽管去混淆代码并不太难。查看http://www.stunnix.com/prod/po/overview.shtml 或谷歌搜索“perl code obfuscator”以获取有关隐藏代码的更多信息。
编辑:看来我错了,请参阅将生成机器代码的 perl 编译器的注释。 (应该和分发 C 程序一样安全)
The only way to do this is to compile it to machine code, unfortunately this isn't possible for perl.See EditYou could alternately obfuscate the code to protect it, although its not too difficult to de-obfuscate the code. Check out http://www.stunnix.com/prod/po/overview.shtml or google for "perl code obfuscator" for some more information on hiding your code.
Edit: It appears I'm wrong, see comments for perl compilers that will make machine code. (Should be as safe as distributing a C program)