隐藏python代码! [英] hide python code !

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

问题描述



我们可以隐藏一个python代码吗?

如果我想写一个商业软件我可以隐藏我的源代码来自

用户访问?

我们可以将它转换为pyc但是这个文件可以反编译......所以...... !!

你对此有什么想法......?


-------------------------------------- -

伊朗首个开源社区: www.python.ir

hi
can we hide a python code ?
if i want to write a commercial software can i hide my source code from
users access ?
we can conver it to pyc but this file can decompiled ... so ...!!
do you have any idea about this ...?

---------------------------------------
First Iranian Open Source Community : www.python.ir

推荐答案



Bayazee写道:

Bayazee wrote:

hi

我们可以隐藏一个python代码吗?

如果我想写一个商业软件我可以隐藏我的源代码来自
hi
can we hide a python code ?
if i want to write a commercial software can i hide my source code from



^^^^^^^^^^^^^^^^^^^^^^^^ [1]

^^^^^^^^^^^^^^^^^^^^^^^^[1]


用户访问?

我们可以将它转换为pyc但是这个文件可以反编译......所以...... !!

你对此有什么想法......?


----- ----------------------------------

伊朗首个开源社区: www.python.ir



^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [2]

[1]和[2]似乎不兼容。


真正保密代码的唯一方法就是不分发它 -

提供来自Web服务器的功能。


如果要分发混淆代码,请考虑将其写入perl

: - )

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[2]
[1] and [2] don''t seem to be compatible.

Really the only way to keep your code secret is not to distribute it --
provide the functionality from a web server.

If you want to distribute obfuscated code, consider writing it in perl
:-)



编译语言当我们将代码编译成可执行文件时

转换为a机器码所以现在我们无法访问源...

但是在python中我们很容易打开程序可执行文件(ascii)和

读取源代码....

i比任何方式保护我的代码或将其转换为可执行文件

女巫无法反编译(python代码)....

hi
in compiled languages when we compile a code to an executable file it
convert to a machine code so now we cant access to source ...
but in python we easily open the program executable(ascii) file and
read source ....
i meen than any way to protect my code or convert it to executable
witch can not be decompiled (python code)....




Bayazee写道:

Bayazee wrote:

hi

编译语言当我们将代码编译成可执行文件时它会转换为机器代码,所以现在我们无法访问源代码......

但是在python中我们很容易打开程序可执行文件(ascii)文件和

读取源代码....

i比任何方式保护我的代码或将其转换为可执行文件

女巫可以不被反编译(python代码)....
hi
in compiled languages when we compile a code to an executable file it
convert to a machine code so now we cant access to source ...
but in python we easily open the program executable(ascii) file and
read source ....
i meen than any way to protect my code or convert it to executable
witch can not be decompiled (python code)....



我知道你的意思。


不过考虑一下:那里是不是可执行的东西,

无法反编译;如果代码可以执行,那么任何拥有

读取代码的人都可以反汇编/反编译/无论如何 -

在反汇编.exe之间没有理论上的区别文件和

反编译.pyc文件。 .pyc文件中的内容只是机器代码

虚拟机...


考虑改变您的商业计划:编写糟糕的软件,收费

堆积支持 - 这不是一个新颖的想法:-)

I know what you mean.

However consider this: There is no such thing as an executable which
cannot be decompiled; if the code can be executed, then anybody with
read access to the code can disassemble/decompile/whatever it -- there
is no theoretical difference between disassembling an .exe file and
decompiling a .pyc file. What''s in a .pyc file is just the machine code
for a virtual machine ...

Consider changing your business plan: write crappy software, charge
heaps for support -- it''s not a novel idea :-)


这篇关于隐藏python代码!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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