Obfuscating Python code? -


I'm looking for a way to hide my Python source code.

  print "Hello World!"  

How can I encode this example so that it is not human-readable? I have been asked to use Base 64 but I'm not sure how.

itemprop = "text">

It is limited only, first level ambiguous resolution, but has built-in: byte-code in Python Is a compiler for:

  dragon-o-m py_compile & lt; Your program.py & gt;  

creates a .pyo file with a byte-code, and where the docstrings are removed, etc. You can rename .pyo with the .py extension, and python & lt; Your program.py & gt; runs as your program, but it does not have your source code.

PS : If your program blur modules like this, you need to rename them with the .pyc suffix (I Not sure it will not break a day), or you can work with .pyo and run them with python -o ... .pyo ( Import should work). This will allow dragon to search your modules (otherwise, Python looks for the .py module).


Comments

Popular posts from this blog

paypal - How to know the URL referrer in PHP? -

oauth - Facebook OAuth2 Logout does not remove fb_ cookie -

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -