Re:Stupid security question on Rails
by cstejerean on Wednesday April 30, 2008 @07:37PM
(#177907)
I think there are pretty good obfuscation tools to provide some degree of protection to C# or Java apps (although I don't remember if they are free). But if you have some proprietary code that you don't want anyone to see the best solution is to run it on your own server and just expose an interface to code that runs on customer machines.
Bytecode obfuscation is a speed bump. We do more raw X86 than .NET, and compared to X86 --- which every security consultancy worth its bill rate can handle now --- obfuscated .NET bytecode is a dream. And that's as mature as we get now.
Although I don't think anyone has done it yet, it may perhaps be possible to package a JRuby on Rails app compiled to java bytecode. Not sure about the technical difficulties or when/if that might happen.
For python use .pyc or .pyo - ofcourse they can be decompiled but then so can be a .class
If you mean, "can I ship customers a Rails app that they themselves run, either on their own servers or an appliance, while keeping them from seeing the source code?", then the answer is "no".
You should be aware that the same answer applies to Python, Perl, Tcl, Java, and C#. Bytecode is trivially decompiled back to readable source code.