隐藏源代码 [英] hide sourcecode

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

问题描述

是否有可能保护python源代码?

我有一个很好的小脚本,我不想向所有人展示来源。


我在Windows PC上使用python。


谢谢 - Mark

解决方案

你可以移动。 PY文件某处

它无法看到并留下.pyc执行

或者你可以冻结它与py2exe。


-Larry


" Mark Buch" <毫安******* @ ewetel.net>在留言中写道

新闻:bv ************* @ news.t-online.com ...

是吗?有可能保护python源代码吗?
我有一个很好的小脚本,我不想向所有人展示源代码。

我在Windows PC上使用python。
谢谢 - Mark



>是否有可能保护python源代码?

我有一个漂亮的小脚本,我不想向所有人展示源代码。

我在Windows PC上使用python 。




将.py文件编译为字节码(.pyc)。那个.pyc文件只能在与你拥有相同xy版本的Python的平台上使用。


请记住.pyc文件遭受同样的反编译

漏洞与任何其他编程语言一样(这就是为什么有b / b
存在软件破解)。如果有人想知道你在做什么,

他们会。


- Josiah


P.S.你想用什么样的剧本来隐藏窥探的眼睛?


Josiah Carlson写道:

是否有可能保护python源代码?
我有一个很好的小脚本,我不想向所有人展示源代码。

我在Windows PC上使用python。



将.py文件编译为字节码(.pyc)。该.pyc文件只能在与您拥有相同xy版本的Python的平台上使用。

请记住.pyc文件遭受与其他任何其他反编译相同的漏洞编程语言(这就是存在软件裂缝的原因)。如果有人想知道你在做什么,
他们会。




我不知道Windows,但在Unix上你可以创建一个脚本使用

权限700并创建一个执行此脚本的小型setuid程序。


不知道Windows是否有这样有用的东西,可能不是: - P $ />

格里特。


-

PrePEP:内置路径类型
http://people.nl.linux.org/~ gerrit / c ... / pep-xxxx.html

阿斯伯格综合症 - 个人方法:
http://people.nl.linux.org/~gerrit/english/


Hi, is it possible to protect the python sourcecode?
I have a nice little script and i dont want to show everbody the source.

Im using python on a windows pc.

Thank you - Mark

解决方案

You could move the .PY file somewhere where
it cannot be seen and leave the .pyc for execution
or you can "freeze" it with py2exe.

-Larry

"Mark Buch" <ma*******@ewetel.net> wrote in message
news:bv*************@news.t-online.com...

Hi, is it possible to protect the python sourcecode?
I have a nice little script and i dont want to show everbody the source.

Im using python on a windows pc.

Thank you - Mark



> Hi, is it possible to protect the python sourcecode?

I have a nice little script and i dont want to show everbody the source.

Im using python on a windows pc.



Compile the .py file into bytecode (.pyc). That .pyc file will only be
usable on platforms with the same x.y version of Python as you.

Remember that .pyc files suffer from the same decompilation
vulnerabilities as any other programming language (which is why there
exists software cracks). If someone wants to know what you are doing,
they will.

- Josiah

P.S. What kind of script do you have that you want to hide from prying eyes?


Josiah Carlson wrote:

Hi, is it possible to protect the python sourcecode?
I have a nice little script and i dont want to show everbody the source.

Im using python on a windows pc.



Compile the .py file into bytecode (.pyc). That .pyc file will only be
usable on platforms with the same x.y version of Python as you.

Remember that .pyc files suffer from the same decompilation
vulnerabilities as any other programming language (which is why there
exists software cracks). If someone wants to know what you are doing,
they will.



I don''t know about Windows, but on Unix you can create a script with
permissions 700 and create a small setuid program executing this script.

Don''t know whether Windows has such useful things though, probably not :-P

Gerrit.

--
PrePEP: Builtin path type
http://people.nl.linux.org/~gerrit/c.../pep-xxxx.html
Asperger''s Syndrome - a personal approach:
http://people.nl.linux.org/~gerrit/english/


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

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