Solved

Python - Is my game's .py code an open book?

Posted on 2014-10-04
2
202 Views
Last Modified: 2014-10-07
Hi
I'm so used to the .class binary encoding for the Java interpreter, which is a little hard to inspect and decipher.
I wonder, is the user that runs my .py from online completely able to inspect and steal my code?
A binary .class is a little harder to inspect and steal. If I inspect a .py inside a browser view source, it seems to be all the code?

Can I make a get-around of sorts, but the .py code itself is unobtainable? Say I'd like to give a person my class's functionality, without them actually having the code?
Thanks
0
Comment
Question by:beavoid
2 Comments
 
LVL 2

Accepted Solution

by:
Nas-Banov earned 500 total points
ID: 40361610
.pyc files are to Python what .class files are to Java.

How exactly are you going to run Python in your browser though?
0
 

Author Comment

by:beavoid
ID: 40361628
Sorry
I thought Python was as runnable as html now, no? Only a ,pyc is. If I let a user of my system have access to my .py file, they can steal my code in text.
Is using pyc the way to go? I basically provide an interface


Basically, my RTS players will have my client network engine class running. I just don't want my code steal-able at a glance.
thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Merge lists using index in Python 1 67
Python error - Need Help 12 93
Need To Find FireFox Binary Path For Python Selenium On Windows 7 15 438
Copy Files - Python 7 72
Flask is a microframework for Python based on Werkzeug and Jinja 2. This requires you to have a good understanding of Python 2.7. Lets install Flask! To install Flask you can use a python repository for libraries tool called pip. Download this f…
Dictionaries contain key:value pairs. Which means a collection of tuples with an attribute name and an assigned value to it. The semicolon present in between each key and values and attribute with values are delimited with a comma.  In python we can…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now