Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Monty Python

Protecting Python Code

This topic is 5466 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I''ve recently started to learn Python and am wondering if there are any good methods to protect the source code when distributing programs. The only way I know is to force the user to sign a legal document before using the program/script but that isn''t very practical. Has anybody got any ideas?

Share this post


Link to post
Share on other sites
Advertisement
source obsufication is one way.

Or encrypt the python source and have your program decrypt it. This would be begging people to crack it though.

Or both.

Share this post


Link to post
Share on other sites
The same reason you would want to protect any of your source code; to stop people stealing it and passing it off as their own work.

Share this post


Link to post
Share on other sites
Why give away the source code at all? If you don't want anyone to see it, just don't ship it. just ship the .pyc files.

[edited by - VolkerG on July 2, 2003 6:10:25 PM]

Share this post


Link to post
Share on other sites
You are WAY too paranoid. If your program is any good (which we can assume it will be since you''re planning on distributing it to a lot of people), then people will know about it. Release it under the GPL, and then if someone wants to use it, that''s fine. They will have to publish their source code too. That''s the POINT of open source. You release some code, someone else sees what you did and they improve it. You see what they did, you improve it, etc. That is a GOOD THING.

Go here and pick whichever viewpoint you''re coming from (business, consumer, hobbyist) and read about the benefits of open source. There are really very few reasons to not release what you have as open source, especially if it''s going to mean you have to do extra work to avoid making it open source.

Share this post


Link to post
Share on other sites
quote:
Original post by Russell
Release it under the GPL, and then if someone wants to use it, that''s fine. [...] There are really very few reasons to not release what you have as open source, especially if it''s going to mean you have to do extra work to avoid making it open source.

One of those reasons - not entirely uncommon - is the desire to make money by selling your programs. That''s rather difficult with a licence that allows other people to redestribute them for free. Don''t get me wrong, I like open source software, but I also have a certain measure of understanding for people who don''t want to give away the fruits of their labour.

Share this post


Link to post
Share on other sites
You could always try using Jython to compile your stuff to Java .class files.

edit: Oh yeah, instead of preaching OSS goodness (which is indeed good) let's stick to answering his question.

I'm hip because I say "M$" instead of "MS".

[edited by - the speed bump on July 2, 2003 9:09:30 PM]

Share this post


Link to post
Share on other sites
quote:
Original post by the Speed Bump
You could always try using Jython to compile your stuff to Java .class files.

Uh, that won''t help much. Reverse engineering .class files is pretty easy.



AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!