From: Tim Hunter Date: 2007-09-02T00:39:55+09:00 Subject: Re: Seeing the source 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. > > > 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. > > > 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.