Can I block others from seeing my code? I'm working on something in Python. As I save it, it's a (.py) and everyone can right-click and see the code. This is unlike C where I generate an .exe that you can't simply (!) read.
            Asked
            
        
        
            Active
            
        
            Viewed 315 times
        
    0
            
            
        - 
                    1First, why do you want to do this? – Collin May 09 '13 at 14:48
- 
                    No, not really. See [Undecompilable Python](http://stackoverflow.com/q/15087339) for a more in-depth discussion. – Martijn Pieters May 09 '13 at 14:48
- 
                    I just want to hide it for my own reasons... – Ofek .T. May 09 '13 at 14:48
- 
                    @Ofek.T. I can only think of you trying to scam someone. – Patrik Lippojoki May 09 '13 at 14:50
- 
                    Not at all. I have a reason that doesn'tany scam of any kind. – Ofek .T. May 09 '13 at 14:51
- 
                    See http://stackoverflow.com/questions/261638/how-do-i-protect-python-code – Mastergalen May 09 '13 at 14:51
- 
                    doesn't converting you code to .pyc help. I always have modle sbeing imported in a small "main" script, importing leads to creation of pyc's, which is what i ship to who-so-ever I wrote the code for (along with a small_main.py) – pranshus May 09 '13 at 15:06
1 Answers
0
            You can read the assembly code generated by the process of the compilation in C. The code is not hidden : it's a bit more complex to read, because it is ASM. But it is totally and definitively not hidden :)
Python is made by Open Source community, so the idea is not about hiding your code. If ever you want to make a .exe from a Python code, you can have a try to Py2Exe or Freeze :
Cheers,
K.
 
    
    
        Koreth
        
- 681
- 5
- 15
- 
                    
- 
                    @Ofek.T. : ASM is sometime simple for people as like as Python is simple for others, especially in RE community :) – Koreth May 09 '13 at 14:56
 
    