Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2002
    Posts
    3,352

    how do you protect python/ruby source code?

    is there any encoder for python or ruby? how do you protect your source code written in python or ruby? is there any opensource or commerical solution?

  2. #2
    Join Date
    Jan 2006
    Location
    Sydney, Australia
    Posts
    251
    Quote Originally Posted by jt2377
    is there any encoder for python or ruby? how do you protect your source code written in python or ruby? is there any opensource or commerical solution?
    On windows or on linux?

    With Python you can just distribute the compiled byte-code so you don't need to distribute the source code, i.e. the .pyc or .pyo files. You can also use something like py2exe to bundle up the compiled byte-code into an .exe file. Or you can write your own __import__ handler with your own encoding/decoding routine (with encryption for example).

    It's trivial to reverse engineer the compiled bytecode however...

  3. #3
    Join Date
    Jul 2002
    Posts
    3,352
    Quote Originally Posted by ylsy
    On windows or on linux?

    With Python you can just distribute the compiled byte-code so you don't need to distribute the source code, i.e. the .pyc or .pyo files. You can also use something like py2exe to bundle up the compiled byte-code into an .exe file. Or you can write your own __import__ handler with your own encoding/decoding routine (with encryption for example).

    It's trivial to reverse engineer the compiled bytecode however...
    nevermind.

  4. #4
    Join Date
    Oct 2004
    Location
    Brisbane, Australia
    Posts
    259
    Python 2.4 does not have any available decompilers for the time being. There are ones out there for 2.3 but not 2.4.

    Ruby doesn't have a byte code compiler or encryption mechanism that im aware of either.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •