Ruby script encryption
-
Hello,
What the best tool and method to encrypt Ruby scripts so they are protected from unwanted editing?
Will a encrypted Ruby script work on both Windows and Mac?
Best regards,
Fernando Malard. -
i dont know a huge amount about ruby (or programming in general) so correct me if im wrong someone, but i think youd have a hard time encrypting a ruby, as it is just a plain text file. This means youd need a seperate piece of software to encrypt the file and produce an encryption key, the user on the other end would then need this same encryption key to see/use the file.
This isnt the case with programs written in C, C+ etc because they are compiled into .exe files first, and you cant edit a .exe file.
there might be some clever ruby trickery that i'm unaware of though, might be worth asking on a more ruby oriented forum to get a faster answer...
-
Hi remus,
I'm asking this because I have downloaded some Ruby scripts for SketchUp and the major part of these .RB files are with the text encrypted and even in this state they load and run fine inside SktechUp.
I though this could be some known tool or application.
Thank you.
-
certainly sounds like it, well as i said previously, i dont know what it is, but good luck finding out how to do it.
-
You can also find more info on the matter here.
-
Thanks.
I have found it, there is an application at the root of SketchUp SDK which is called Scrambler.exe.You just need to run it from command prompt and pass the name of your Ruby file. It will generate a new file with the same name and RBS extension.
I think this is the best way to protect your routines by now.
Best regards,
Fernando.
Advertisement