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

    Ruby script encryption

    Scheduled Pinned Locked Moved Developers' Forum
    6 Posts 3 Posters 2.2k Views 3 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.
    • F Offline
      fpmalard
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • R Offline
        remus
        last edited by

        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...

        http://remusrendering.wordpress.com/

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

          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.

          1 Reply Last reply Reply Quote 0
          • R Offline
            remus
            last edited by

            certainly sounds like it, well as i said previously, i dont know what it is, but good luck finding out how to do it.

            http://remusrendering.wordpress.com/

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

              You can also find more info on the matter here.

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

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

                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.

                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