封闭源 [英] closed source

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

问题描述




技术上可以将python项目作为封闭的

来源分发,即加密吗?


我相信* .pyc文件不能在没有* .py源的情况下工作......而且他们可以轻易地反编译



- -

Milos Prudek

Hi,

is it technically possible to distribute a python project as a closed
source, i.e. encrypted?

I believe that *.pyc files do not work without *.py sources... and they can
be easily decompiled.

--
Milos Prudek

推荐答案

Milos Prudek写道:
Milos Prudek wrote:

是不是技术上可以将python项目作为一个封闭的源来分发,即加密?

我相信* .pyc文件不能在没有* .py源的情况下工作......他们可以

is it technically possible to distribute a python project as a closed
source, i.e. encrypted?

I believe that *.pyc files do not work without *.py sources... and they can
be easily decompiled.




多次(*很多*)过去对此事的讨论已经发生......检查档案。


简短回答:.pyc文件没有.py文件工作正常(用于记录),但

是的,它们可以被反编译(例如,使用decompyle),而不是'的,实际上你不能做你想要的事情,b。b请注意,使用任何其他语言也无法实现
...


如果您*真的需要保护,您必须运行受保护的您的

自己的服务器上的源代码,并通过网络提供算法。如果你不想做这条路线,那么你唯一真正的选择就是接受一个人会看到你的来源更大的风险(天堂禁止!)通过与客户签订适当的软件许可协议来降低风险




-Peter



Numerous (*many*) past discussions of this have occurred... check the archives.

Short answer: .pyc files work fine without .py files (for the record), but
yes they can be decompiled (using "decompyle", for example), and no it''s
effectively not possible to do what you are asking, but note that it''s
also impossible with any other language either...

If you *really* need protection, you must run your protected source on your
own server and make the algorithms available across the network. If you
don''t want to do this route, your only other real choice is to accept a
greater risk that someone will see your source (heaven forbid!) and mitigate
that risk by having appropriate software licence agreements in place with
your customers.

-Peter


文章< 3F *************** @ engcorp.com>,

Peter Hansen< pe ***@engcorp.com>写道:
In article <3F***************@engcorp.com>,
Peter Hansen <pe***@engcorp.com> wrote:
Milos Prudek写道:
Milos Prudek wrote:

技术上是否可以将python项目作为封闭的源分发,即加密?

我相信* .pyc文件不能在没有* .py源的情况下工作......而且它们可以很容易地反编译。

is it technically possible to distribute a python project as a closed
source, i.e. encrypted?

I believe that *.pyc files do not work without *.py sources... and they can
be easily decompiled.



无数(*很多) *)过去对此的讨论已经发生......检查档案。

简答:.pyc文件工作正常,没有.py文件(用于记录),但是
是的,他们可以反编译(例如使用decompyle),并且没有它实际上不可能做你所要求的,但请注意,使用任何其他语言它也是不可能的...

如果你真的需要保护,你必须在自己的服务器上运行受保护的源,并在网络上提供算法。如果你不想做这条路线,你唯一真正的选择就是接受一个更大的风险,即某人会看到你的来源(天堂禁止!)并减轻风险通过与客户签订适当的软件许可协议。

-Peter



Numerous (*many*) past discussions of this have occurred... check the archives.

Short answer: .pyc files work fine without .py files (for the record), but
yes they can be decompiled (using "decompyle", for example), and no it''s
effectively not possible to do what you are asking, but note that it''s
also impossible with any other language either...

If you *really* need protection, you must run your protected source on your
own server and make the algorithms available across the network. If you
don''t want to do this route, your only other real choice is to accept a
greater risk that someone will see your source (heaven forbid!) and mitigate
that risk by having appropriate software licence agreements in place with
your customers.

-Peter




一些元素:Prudek先生,肯定有软件从业者的集中,在封闭源方面思考和行动是b b b,并涉及这些技术现实

作为编译,混淆,加密等等。 comp.lang.python参与者中非零的
少数人持有并练习这个

视图。


最多然而,comp.lang.python

中的传统智慧要么对这种方法无动于衷,不屑一顾,要么充满敌意。


彼得的说得很对在报告中,过去曾经有过很多关于这些问题的讨论,而且至少要阅读其中一些内容是值得的。 。


如果您想对

Python社区做出快速但重要的贡献,您可以考虑在Wiki< URL中进行总结:
http://www.python.org/cgi-bin / moinmoin / >你在

科目上学到了什么。

-


Cameron Laird< cl **** @ phaseit.net> ;

业务: http://www.Phaseit.net



A few metacomments: Mr. Prudek, there certainly are concentrations
of software practitioners where it''s conventional to think and act
in terms of "closed source", and to involve such technical realities
as "compilation", "obfuscation", "encryption", and so on. A non-zero
minority of the comp.lang.python participants hold and practice this
view.

For the most part, however, conventional wisdom in comp.lang.python
is either indifferent, dismissive, or hostile to such approaches.

Peter''s quite right in reporting that there has been a LOT of discus-
sion of these matters in the past, and moreover that it''s worthwhile
to read at least some of these.

If you''d like to make a quick but significant contribution to the
Python community, you might consider summarizing in the Wiki <URL:
http://www.python.org/cgi-bin/moinmoin/ > what you learn on the
subject.
--

Cameron Laird <cl****@phaseit.net>
Business: http://www.Phaseit.net


Milos Prudek< me@me.cz>在留言新闻中写道:< bn ************ @ ID-205031.news.uni-berlin.de> ...
Milos Prudek <me@me.cz> wrote in message news:<bn************@ID-205031.news.uni-berlin.de>...


技术上是否可以将python项目作为一个封闭的源进行分发,即加密?

我相信* .pyc文件在没有* .py源的情况下不起作用..他们可以很容易地反编译。
Hi,

is it technically possible to distribute a python project as a closed
source, i.e. encrypted?

I believe that *.pyc files do not work without *.py sources... and they can
be easily decompiled.




嗨米洛斯,


我不知道是否这适合你的项目,但是如果(IIRC)你使用Jython,你可以对代码进行字节编译,这些代码将作为Java

应用程序运行,但是其他任何人都很难锻炼(当然不是这么多,不需要花费很多工作)。


Alan James Salmoni

SalStat统计
http://salstat.sunsite.dk


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

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