Using JRuby to obfuscate Ruby code

Hi!

Can I use Jruby to obfuscate my Ruby code so the client can’t re-use my
code? I want to deploy a Rails application to a machine operated by the
client. The client wants to operate the database, the server and
everything else, but obviously I don’t want that he can read my code. Or
do you have other suggestions?

Thanks,
Heiko.

ha we wrote:

Hi!

Can I use Jruby to obfuscate my Ruby code so the client can’t re-use my
code? I want to deploy a Rails application to a machine operated by the
client. The client wants to operate the database, the server and
everything else, but obviously I don’t want that he can read my code. Or
do you have other suggestions?

if packaging it up in a jar is “obfuscation” then yes it does it pretty
readily. I think you can deploy rails apps as wars. See also rawr.

http://stackoverflow.com/questions/99553/can-you-distribute-a-ruby-on-rails-application-without-source
http://www.infoq.com/news/2008/10/rubyencoder
http://github.com/rawr/rawr

Roger P. wrote:

readily. I think you can deploy rails apps as wars. See also rawr.
If you have jruby compile the ruby code to java class files the results
are pretty damn good obfuscation. Certainly better than what you get
from compiling plan java code, because the ruby code goes through an
additional step, so even were someone to decompile it they’d have a hard
time making sense of it.

You can package this up in a war file for deployment, though I don’t
think war’ing by itself does much for obfuscation. It may make it
easier to handle, though.

James B.

Neurogami - Smart application development

http://www.neurogami.com

[email protected]


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Wed, Sep 29, 2010 at 9:31 AM, ha we [email protected] wrote:

Hi!

Can I use Jruby to obfuscate my Ruby code so the client can’t re-use my
code? I want to deploy a Rails application to a machine operated by the
client. The client wants to operate the database, the server and
everything else, but obviously I don’t want that he can read my code. Or
do you have other suggestions?

Yes. Warbler 1.2 has a new feature “compiled” which does the
compile-ruby-to-a-class-file and bundles the class files in your war
file for you.

http://caldersphere.rubyforge.org/warbler/

/Nick


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

On Wed, Sep 29, 2010 at 9:09 AM, James B. [email protected]
wrote:

You can package this up in a war file for deployment, though I don’t think
war’ing by itself does much for obfuscation. It may make it easier to
handle, though.

AFAIK most containers expand war files into a directory by default,
so that’s not really going to offer much “obfuscation” :slight_smile:


Hassan S. ------------------------ [email protected]
twitter: @hassan


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs