Tim Hunter
9/1/2007 3:40:00 PM
Michel Cabili wrote:
> Well, then I guess that we can't obfuscate the code with Ruby.
>
> It's not a necessity. It's just that I'm used to compiled languages in
> wich, if the project isn't that complex, you basically give one file to
> the user.
>
> <troll>
> If I really need this kind of feature I guess I could develop a library
> in C that would encrypt all my '.rb' files into another file and decode
> them when launching the application... or something like that.
> </troll>
>
> Thanks for your answers.
>
I actually worked on something like this but I finally decided that it
was hopeless. Since the encrypted Ruby code must be decrypted before
being handed off to the Ruby interpreter, there's always going to be a
way for a sufficiently-motivated user to get their hands on the
unencrypted version of the program.