Welcome to Keen Software House Forums! Log in or Sign up to interact with the KSH community.
  1. You are currently browsing our forum as a guest. Create your own forum account to access all forum functionality.

Script protection?

Discussion in 'Programming Questions and Suggestions' started by Phoera, Jan 26, 2015.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. Phoera Senior Engineer

    Messages:
    1,713
    Is there any way to protect your script from stealing?
     
  2. teclab85 Trainee Engineer

    Messages:
    21
    set it on a warhead and have a method for isBeingHacked
     
  3. Phoera Senior Engineer

    Messages:
    1,713
    any possibility except that?
     
  4. Cuber Apprentice Engineer

    Messages:
    262
    You can always obfuscate your code :)
     
  5. hellokeith Apprentice Engineer

    Messages:
    335
    Build a "key block" like an internal light and name it the encryption/decryption key, or name it the variables/values you want hidden. Run your script once to grab them, and then you physically destroy the block. Just rebuild the block each time you enter the game or recompile the code. Have the code check for first-time-run (PB ownership changed) && if key block does not exist, then bad things happen.

    Great topic!
     
  6. MegaMiner Junior Engineer

    Messages:
    625
    The warhead is best, obfuscation is also nice. Rename all variables and functions and remove all unnecessary whitespace, and put the entire script on a single line, no CR or LF's There is probably an online utility to do it for you.


    Put a copyright notice in as well, while it wont stop them from copying it, it does give you legal authority to have them banned form a server, although that is being a poor sport if they legitimately pirated your ship.
     
    Last edited by a moderator: Jan 27, 2015
  7. swixel Trainee Engineer

    Messages:
    42
    This is what I use, and I also have the block constantly resetting the warhead's timer to 10s in the event someone gets clever.

    Honestly obfuscation isn't going to do anything. If they want it, and have lifted it, it'll be worse if you employ obfuscation (they'll ask people, it'll get spread faster :p).
     
Thread Status:
This last post in this thread was made more than 31 days old.