# Min, pack or crypt ruby code

**URL:** <https://www.ruby-forum.com/t/min-pack-or-crypt-ruby-code/136707>\
**Category:** Ruby\
**Created:** [May 5, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/min-pack-or-crypt-ruby-code/136707 "2008-05-05T19:20:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b2d939/32.png) [@fero](https://www.ruby-forum.com/u/fero)\
**Post date:** [May 5, 2008, 7:20pm UTC](https://www.ruby-forum.com/t/min-pack-or-crypt-ruby-code/136707/1 "2008-05-05T19:20:59Z")

</div>

hello… is there an tool for minifying, packing or crypting ruby code?  
thx.

---

<div class="post-metadata">

**Author:** ![fero](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b2d939/32.png) [@fero](https://www.ruby-forum.com/u/fero)\
**Post date:** [May 6, 2008, 4:36pm UTC](https://www.ruby-forum.com/t/min-pack-or-crypt-ruby-code/136707/2 "2008-05-06T16:36:38Z")

</div>

-------- Original-Nachricht --------

> Datum: Tue, 6 May 2008 02:21:08 +0900  
> Von: Frantisek P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> An: removed\_email\_address@domain.invalid  
> Betreff: min, pack or crypt ruby code

> ## hello… is there an tool for minifying, packing or crypting ruby code? thx.
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

Dear Frantisek,

there’s this:

[http://www.rubyinside.com/px-a-quick-and-silly-ruby-obfuscation-system-7.html](http://www.rubyinside.com/px-a-quick-and-silly-ruby-obfuscation-system-7.html)

No code obfuscation system is really secure,  
so it’s rather a kind of visual art than true protection of code from  
determined people.

You could release just an executable using rubyscript2exe

[http://www.erikveen.dds.nl/rubyscript2exe](http://www.erikveen.dds.nl/rubyscript2exe)

or Platypus (on Mac)

> **[Platypus - Create Mac apps from command line scripts](http://www.sveinbjorn.org/platypus)**
>
> Sveinbjörn's personal website. Also some open source software stuff.

or write some combination of Ruby/C using  
Swig

[http://www.swig.org/](http://www.swig.org/)

… or quit Ruby for some naturally obfuscated language like  
Perl 🙂

Best regards,

Axel
