问题描述
我是python的新手,我正在评估使用Python + PySide开发桌面程序的过程,发现在将python代码转换为可执行文件方面非常有效,而且它是跨平台的。
I'm new to python, and I'm evaluating developing desktop programs with Python + PySide, and found that cx_freeze works very good in converting my python code into executables, and it's cross-platform.
我的问题是,其他人是否可以将cx_freeze生成的EXE反编译为可读性强的代码,就像我的原始源代码一样?
My question is, can someone else decompile an EXE generated by cx_freeze back to fully readable code , as if my original source code?
注意:我并不担心有人会破解我的程序,只是不想让其他人使用我的代码并以此为基础进行开发。
Note: I'm not worried about someone cracking my program, but just don't want someone else can take my code and developed base on it.
谢谢。
推荐答案
通常-不。 CX Freeze和py2exe存储代码的PYC版本,即从PY文件编译的字节码。目前,如果我没记错的话,没有可行的PYC反编译器。有些为您提供了带有注释的或多或少可读的字节代码,但没有一种会为您提供实际的Python源代码。
因此,在这方面-不可以反编译。
您还可以考虑采用完全本机的方式,并使用
In general - no. CX Freeze and py2exe store the PYC version of your code, the bytecode compiled from the PY files. Currently, if I am not mistaken, there are no working viable PYC decompilers. Some give you a more-or-less readable byte code with annotations, but none will give you the actual Python source code.So in that regard - no, it cannot be decompiled.You can also consider going the full native way and use Shed Skin
这篇关于cx_freeze生成的EXE可以完全反编译为可读的Python代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!