Python 应用程序:您能以某种方式保护您的代码吗? [英] Python Applications: Can You Secure Your Code Somehow?

查看:40
本文介绍了Python 应用程序:您能以某种方式保护您的代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果确实有最佳"方式,那么发布 Python 应用并确保人们无法(轻松)对您的算法/安全性/工作进行逆向工程的最佳方式是什么?

If there is truly a 'best' way, what is the best way to ship a python app and ensure people can't (easily) reverse engineer your algorithms/security/work in general?

如果没有最佳"方式,有哪些不同的选择?

If there isn't a 'best' way, what are the different options available?

背景:我喜欢用 Python 编码,并希望用它发布更多应用程序.我想知道的一件事是人们是否有可能绕过我输入的任何许可代码,或者能够窃取我的整个源代码库.我听说过 Py2Exe 和类似的应用程序,但我很好奇是否有首选"的方法来做,或者这个问题是否只是现实.

Background: I love coding in Python and would love to release more apps with it. One thing that I wonder about is the possibility of people circumventing any licensing code I put in, or being able to just rip off my entire source base. I've heard of Py2Exe and similar applications, but I'm curious if there are 'preferred' ways of doing it, or if this problem is just a fact of life.

推荐答案

通过默默无闻来保证安全永远.如果您必须使用专有许可,请通过法律强制执行,而不是半生不熟的混淆尝试.

Security through obscurity never works. If you must use a proprietary license, enforce it through the law, not half-baked obfuscation attempts.

如果您担心他们学习您的安全(例如密码学)算法,同样适用.即使算法是完全已知的,真实、有用的安全算法(如 AES)也是安全的.

If you're worried about them learning your security (e.g. cryptography) algorithm, the same applies. Real, useful, security algorithms (like AES) are secure even though the algorithm is fully known.

这篇关于Python 应用程序:您能以某种方式保护您的代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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