• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

How to protect your plugins code

Scheduled Pinned Locked Moved Developers' Forum
5 Posts 4 Posters 1.1k Views 4 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.
  • T Offline
    tlnguyen
    last edited by 5 Jun 2012, 15:03

    hello everybody,
    our team has developed a Sketchup ruby plugin and we now want to "lend" it to a partner. So is there a way to protect our ruby code? and is there a way to remotely control its use?

    thank you very much,
    regards,

    tlnguyen

    1 Reply Last reply Reply Quote 0
    • P Offline
      pilou
      last edited by 5 Jun 2012, 15:41

      https://developers.google.com/sketchup/docs/tutorial_distributing ?

      Frenchy Pilou
      Is beautiful that please without concept!
      My Little site :)

      1 Reply Last reply Reply Quote 0
      • D Offline
        Dan Rathbun
        last edited by 5 Jun 2012, 15:42

        You can scramble them:

        SketchUp Ruby Script Scrambler

        Beware:

        1) The global functions FILE and LINE cannot be used within files that you will later scramble into RBS.
        The Sketchup.load() and Sketchup.require() methods have internal errors in their decryption code, that do not translate the filepath and line.

        2) If you use SketchupExtension class plugin registration, this class cannot call a rbs file directly. It must call an unscrambled rb file ("the loader file") that has nothing but, one or more, Sketchup.require("myfile") calls in it.

        💭

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • T Online
          TIG Moderator
          last edited by 5 Jun 2012, 17:24

          I am not inferring that you are doing anything 'wrong'...
          But 'remotely controlling' a tool with encrypted-code seems to be too much like malware/adware/trojanware/virusware/etc...
          I certainly wouldn't want to load a .rbs file from an 'untrusted' source, and if I found I was using one that was 'doing things behind my back without my permission', then I would certainly not trust it any longer !
          Imagine the havoc such a tool could wreak on someone else's PC in the wrong hands...

          TIG

          1 Reply Last reply Reply Quote 0
          • D Offline
            Dan Rathbun
            last edited by 5 Jun 2012, 17:50

            @tlnguyen said:

            So is there a way to protect our ruby code? and is there a way to remotely control its use?

            Do you mean license management ?

            "Control it's use"... in what way(s) ??

            I'm not here much anymore.

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

            Advertisement