Encrypt source code Ruby on Rails?

Asked

Viewed 729 times

3

I need to deploy a ready-made system made with the framework Ruby on Rails in a client’s company, the problem is that this client cannot have access to the source codes.

Is there any way to "encrypt" or "compile" my code to become unreadable for third parties?

  • 1

    Why don’t you just provide the service (server)? Then it has no access to the source.

  • The problem is that there are some specific customers who cannot depend on the internet for the system to work, that is, I need to operate offline. I need to have a physical server in the company.

  • All right, and that server could not be yours, with maintenance contract, etc?

  • 2

    We have a similar question, only for Java. I think it’s worth checking out: http://answall.com/questions/7257/howto protect o-c%C3%B3digo-source

2 answers

1


As I mentioned in my comments, I believe it is better to provide the service than the program itself. Not least because obfuscating the code does not prevent reverse engineering processes from being carried out and make it impossible to access the code. That being said, if you even opt for this solution, it is possible to obfuscate the code by "compiling" it with the Ruby Encoder, for example.

Another alternative would be to make the code in another language (like C, for example) and just use the Ruby application as a "wrapper" of that code. This can still bring other advantages, such as gain in performance, for example.

  • 1

    Okay, I’m going to do as Felipe Avelar commented on the question and @Renan passed a similar situation, I’m going to create a maintenance contract and a source code protection contract,a final, I can’t stop them from doing reverse engineering even with the encrypted code. Thanks for the tips.

0

Cara, although he has never looked for something like this, tries to use Jruby that can be compiled and run on top of the Java VM and integrates it with Rails through Jetty-Rails. https://github.com/fabiokung/jetty-rails

  • But that doesn’t make my application too slow?

  • Have to test expensive, honestly never made a jruby/Rails application run on Jetty, but in java applications it is very light guj runs on top of it. It’s worth testing to see.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.