python隐藏部分代码,隐藏python代码!

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 wrote:

hi

can we hide a python code ?

if i want to write a commercial software can i hide my source code from

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

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

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[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

:-)

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 wrote:

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)....

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 :-)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值