# Protecting the code

**URL:** <https://www.ruby-forum.com/t/protecting-the-code/149276>\
**Category:** Rails\
**Created:** [September 23, 2008, 8:45am UTC](https://www.ruby-forum.com/t/protecting-the-code/149276 "2008-09-23T08:45:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubyman77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@rubyman77](https://www.ruby-forum.com/u/rubyman77)\
**Post date:** [September 23, 2008, 8:45am UTC](https://www.ruby-forum.com/t/protecting-the-code/149276/1 "2008-09-23T08:45:11Z")

</div>

We are just starting a new project and it is going to be a commercial  
application. So we have a reasonable question now - how can we protect  
our code? I have searched the web but found nothing really useful. Can  
anyone suggest any solutions or ideas about code protection for  
Ruby/Rails?

Thanks

---

<div class="post-metadata">

**Author:** ![rubyman77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@rubyman77](https://www.ruby-forum.com/u/rubyman77)\
**Post date:** [September 23, 2008, 9:31am UTC](https://www.ruby-forum.com/t/protecting-the-code/149276/2 "2008-09-23T09:31:18Z")

</div>

On Sep 23, 2:45 pm, Sasha B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> We are just starting a new project and it is going to be a commercial  
> application. So we have a reasonable question now - how can we protect  
> our code? I have searched the web but found nothing really useful. Can  
> anyone suggest any solutions or ideas about code protection for  
> Ruby/Rails?
> 
> ## Thanks
> 
> Posted viahttp://www.ruby-forum.com/.

I’m actually interested with this as well. I’m thinking of something  
like how the Javascript packers work, if that is possible.

---

<div class="post-metadata">

**Author:** ![rubyman77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@rubyman77](https://www.ruby-forum.com/u/rubyman77)\
**Post date:** [September 23, 2008, 10:42am UTC](https://www.ruby-forum.com/t/protecting-the-code/149276/3 "2008-09-23T10:42:45Z")

</div>

Sasha B. wrote:

> We are just starting a new project and it is going to be a commercial  
> application. So we have a reasonable question now - how can we protect  
> our code? I have searched the web but found nothing really useful. Can  
> anyone suggest any solutions or ideas about code protection for  
> Ruby/Rails?
> 
> Thanks

Sacha, I see you’ve posted twice. Erol, please look at this thread:

[http://www.ruby-forum.com/topic/166458](http://www.ruby-forum.com/topic/166458)

Ade

---

<div class="post-metadata">

**Author:** ![rubyman77](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/258eb7/32.png) [@rubyman77](https://www.ruby-forum.com/u/rubyman77)\
**Post date:** [September 23, 2008, 6:31pm UTC](https://www.ruby-forum.com/t/protecting-the-code/149276/4 "2008-09-23T18:31:39Z")

</div>

On Sep 23, 4:42 pm, Ade I. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Sacha, I see you’ve posted twice. Erol, please look at this thread:
> 
> [Protecting Ruby code - Ruby - Ruby-Forum](http://www.ruby-forum.com/topic/166458)
> 
> Ade

Thanks for the thread. I’m more inclined to go with your solution  
([www.rubyencoder.com](http://www.rubyencoder.com)), but I couldn’t try it out yet since my dev  
machine is running on Windows. I’ll probably try later when I get a  
Nix machine up, or atleast a VM.
