News for hackers. Stuff that matters.
Re:Stupid security question on Rails by tptacek on Wednesday April 30, 2008 @05:51PM (#177828)
Can you be more specific about the word "secure"?

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.

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.
Re:Stupid security question on Rails by tptacek on Thursday May 01, 2008 @12:45AM (#178088)
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.
Re:Stupid security question on Rails by crzivn on Wednesday April 30, 2008 @11:35PM (#178026)
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.
Re:Stupid security question on Rails by srp on Thursday May 01, 2008 @12:17AM (#178059)
For python use .pyc or .pyo - ofcourse they can be decompiled but then so can be a .class
Re:Stupid security question on Rails by tptacek on Thursday May 01, 2008 @12:45AM (#178089)
Yes, and both a .class and a .pyc file are completely equivalent to source code. Why bother?