sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Ruby Scrambler -- Myth or Marvel?

    Scheduled Pinned Locked Moved Developers' Forum
    11 Posts 8 Posters 4.8k Views 8 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      kevd
      last edited by

      "[...] or Marvel"? -- Yeah, sorry... I couldn't find anything better to alliterate with "Myth".

      Anyway! A question about the legendary Ruby Scrambler! I've been hunting for this fabled beast for two weeks. I've come across tantalising clues that it does in fact exist -- for example, here:

      http://www.sketchucation.com/scf/viewtopic.php?f=9&t=2842

      and here:

      http://groups.google.com/group/Ruby-API/browse_thread/thread/85239d5695a1d162/9cb933f0e4784c6d?lnk=st&q=sketchup+scrambler#9cb933f0e4784c6d

      and most promisingly here:

      http://download.sketchup.com/sketchuphelp/gsu6_ruby/Docs/Ruby-Sketchup.html#load.

      Several of these point to an e-mail address, all of which I've written to, and none of which have bounced (which is auspicious). On the other hand, I've also gotten replies from exactly none of them (which is less auspicious). I've also written to technical support (I have a Pro license), and Sales, also with no response. I'm not exactly sure how to interpret this. Is it just that SketchUp is getting swamped with queries, or do they just provide generally bad (or non-existent) support? Have I maybe stumbled across some X-Filian conspiracy cover-up? Has the Scrambler been eaten by the Legendary Beast of Aaauuuuuuggggggghhhhhh ("It is the rabbit!"), or has it been discontinued? Or perhaps has someone tainted my coffee such that it's causing me to write only vaguely coherent posts to public forums? (Perhaps this isn't mutually exclusive of the mythologicalness of the SketchUp Scrambler though.)

      In any event, if anyone has concrete proof that the Scrambler isn't a red herring (for example, if someone's actually using it), I'd very much appreciate hearing about it. As an added bonus, I wouldn't object if you let me know how you went about actually getting it. I promise I won't follow up with: "Can you send me a copy of it?" -- I just want to know if I'm wasting my time e-mailing every SketchUp address that seems promising.

      As always, thanks a bundle,

      Kevin

      1 Reply Last reply Reply Quote 0
      • E Offline
        ELYSIUM
        last edited by

        You know that the only way you can defeat te Legendary Beast of Aaauuuuuuggggggghhhhhh is with the holy grenade. Get one!

        http://www.intriguing.com/mp/_pictures/grail/large/HolyGrail173.jpg

        1 Reply Last reply Reply Quote 0
        • jujuJ Offline
          juju
          last edited by

          This subject has come up before. As you might imagine, the ruby scrambler is there to protect copyrighted ruby scripts. With this in mind, you can imagine that this program will not be readily available to protect it from being reverse engineered and such.

          I would imagine that only bona fide developers will have access to this through Google SketchUp offices.

          Save the Earth, it's the only planet with chocolate.

          1 Reply Last reply Reply Quote 0
          • EdsonE Offline
            Edson
            last edited by

            i have never heard of this and will follow this with interest.

            edson mahfuz, architect| porto alegre • brasil
            http://www.mahfuz.arq.br

            1 Reply Last reply Reply Quote 0
            • tbdT Offline
              tbd
              last edited by

              here is one concrete proof 😄

              the email from Ruby docs is the one that gets you the scrambler (which is part of the SDK). btw, why do you need the scrambler ? you can make a scrambler yourself 😉

              SketchUp Ruby Consultant | Podium 1.x developer
              http://plugins.ro

              1 Reply Last reply Reply Quote 0
              • K Offline
                kevd
                last edited by

                In fact, creating my own scrambler was an option I was toying with. I was hoping to avoid that route though, just because it's a little bit outside the scope of what I wanted to do. Still, it's true that it's nonetheless an option.

                In any event, thanks kindly to everyone for the confirmation. I'll keep my hopes up that I get an answer from SketchUp themselves about it.

                Kevin

                1 Reply Last reply Reply Quote 0
                • Al HartA Offline
                  Al Hart
                  last edited by

                  I couldn't tell from some of the replies whether you were looking for the Scrambler, or some way to unscramble the scripts.

                  Assuming you are looking for a scrambler:

                  1. Some Ruby developers use a "ruby" method to scramble scripts. This ruby encoding make is hard for a casual user to read your script, but it would only take a good hacker about 30 seconds to un-encrypt it.

                  2. The Ruby scrambler from SketchUp works quite well except for one problem. The way they have implemented it, error messages and other tracebacks from inside the script to not report the line numbers properly.

                  There is a fairly easy way to fix this line number problem which I am prepared to share with other developers. If you get a hold of the scrambler, and want help with the line number problem, contact me directly.

                  Al Hart

                  http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                  IRender nXt from Render Plus

                  1 Reply Last reply Reply Quote 0
                  • Al HartA Offline
                    Al Hart
                    last edited by

                    @kevd said:

                    In fact, creating my own scrambler was an option I was toying with.
                    Kevin

                    Most methods of scrambling things yourself are pretty easy for Ruby programmers to hack.

                    Al Hart

                    http:wiki.renderplus.comimageseefRender_plus_colored30x30%29.PNG
                    IRender nXt from Render Plus

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      kevd
                      last edited by

                      Hi Al,

                      You were right: I am indeed trying to get the Scrambler. (I'm not interested in unscrambling scrambled files.)

                      As for "self-scrambled" files being easy to unscramble by a determined person, I sorta intuitively agree. (That was another reason why I was trying to avoid that path.) For myself in particular (being a complete non-expert at encryption), I'm positive this would be the case.

                      Fortunately, I seem to have been pointed down the right road to getting the one from SketchUp. Not surprisingly, the documentation by SketchUp itself (http://download.sketchup.com/sketchuphelp/gsu6_ruby/Docs/Ruby-Sketchup.html#load) seems to have been the one with the correct contact info. Hopefully I'll get an answer back!

                      Thanks again everyone,

                      Kevin

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        fpmalard
                        last edited by

                        Hello, I came from another post I have done myself and was able to find out how to scramble the Ruby sources.

                        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.

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          azuby
                          last edited by

                          I've integrated both methods to the d/Code plugin:

                          • encrypt files with Scrambler.exe
                          • encode code with the other method
                            Maybe anyone needs it and doesn't like to use the command line. (The scrambler isn't provided with the plugin, you have to get it on your own.)

                          azuby

                          *error initus :: Blocks | CurrentDate | d/Code | extensionmanager | FFlipper | HideEdges | MeasuredArea | ModelHistory | PluginsHelp | PronButton | SAWSO | SCP | SU²CATT

                          Bad English? PM me, correct me. :smile:**

                          1 Reply Last reply Reply Quote 0
                          • 1 / 1
                          • First post
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement