Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Discussion How to secure plugin code?

Comments in 'General Discussion' started by must_, May 2, 2014.

?

Do you hate people who cheating with code?

  1. Of course

    87.0%
  2. No

    13.0%
  1. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    Could I find something else, like konverting into (pmf) files? Or phar
  2. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    433
    Plugins:
    14
    Minecraft User:
    shoghicp
    PMF files can be converted back. Same with PHAR files.
  3. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    Yes but no one knows it in my country)))
    Falk likes this.
  4. Exxarion
    Offline

    Exxarion Active Member Plugin Developer

    Joined:
    Jan 5, 2014
    Posts:
    242
    Plugins:
    1
    Minecraft User:
    Notch
    Attempt to add a important, unique piece of code which can't be modified without corrupting the plugin. Make sure no other developer uses it, and make it unique and special, which tells everybody that you created it.
  5. Tuff
    Offline

    Tuff Active Member

    Joined:
    Jan 25, 2014
    Posts:
    203
    Minecraft User:
    Roboroug2
    I often copy and paste small clips from other people's plugins to save time. And it helps me learn the different functions, I honestly hope that others will do the same with any plugins I may want to release.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I think he wants his code to be close-source. People would use the core ideas of his code, as he thinks, for other plugins.
    However, you don't have to worry about this. Everybody, if he knows coding, has his own style of code. For example, my style of code is to separate things in as many classes and functions as possible xD bad practice in some cases. Another style of my code is the variable naming. I also love to use dir() instead of scandir(). Also lowercase namespace. These are hard to explain that the above is only minor points, but everyone understands if they have coding experience and code reading experience.

    As for making your code close-source, I don't see the reason why you have to do that. Maybe you're worried that your code is copied, but no offense, I don't think, according to my understanding in what I saw of your code, that looking at your code would do them any good.
    In fact, looking at other people's code is a vasic method to learn coding. Just like me, I learnt PHP purely by looking at others' code. It would be good of you to release your code openly, and the moderators are CLEVER enough to recognize code style.
    However, answering your question, unless you compile and assemble the code into pure binary read by PHP, it is impossible to hide it. Just like PMF plugins are not safe because it is just binary-ed PHP code that, at the end, will be converted back to PHP code for the PHP engine to parse it.

    The only secure method of closing source is how MCPE is compiled from C++ into binary. It couldn't be restored, and at most changed into assembly language of the lowest readability.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Wow I didn't know I wrote so much. :p
  8. hamachichi
    Offline

    hamachichi Banned

    Joined:
    Jun 5, 2014
    Posts:
    43
    Minecraft User:
    hamachichi
    just use dev tools old api and convert it to pmf
  9. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    551
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    That only compresses the plugin.
  10. hamachichi
    Offline

    hamachichi Banned

    Joined:
    Jun 5, 2014
    Posts:
    43
    Minecraft User:
    hamachichi
    yea that well protect you from noobs stealing your plugin xD
  11. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    551
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    "noobs" Yet you can still decompress it.
    PEMapModder likes this.
  12. hamachichi
    Offline

    hamachichi Banned

    Joined:
    Jun 5, 2014
    Posts:
    43
    Minecraft User:
    hamachichi
    well when i was noob i didnt know how
  13. hamachichi
    Offline

    hamachichi Banned

    Joined:
    Jun 5, 2014
    Posts:
    43
    Minecraft User:
    hamachichi
    are you sirous pemapmodder
  14. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    ?
  15. hamachichi
    Offline

    hamachichi Banned

    Joined:
    Jun 5, 2014
    Posts:
    43
    Minecraft User:
    hamachichi
    you liked it because you think im noob .right?
  16. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    No. I liked the wrong post.
    Darunia18 and codmadnesspro like this.
  17. codmadnesspro
    Offline

    codmadnesspro Notable Member Plugin Developer

    Joined:
    Sep 11, 2013
    Posts:
    551
    Plugins:
    1
    Minecraft User:
    Codmadnesspro
    *Laughs*
    Lambo and Darunia18 like this.
  18. Elmo
    Offline

    Elmo Active Member

    Joined:
    May 9, 2014
    Posts:
    65
    Minecraft User:
    optrusty
    Make a liscence if a person wants to modify and publish it they have to give credit http://creativecommons.org/choose/?format=text
  19. iamadpond
    Offline

    iamadpond Banned

    Joined:
    Aug 24, 2013
    Posts:
    191
    Minecraft User:
    iamadpond
    You could just encrypt it and load whatever dependences you want, like base64. That would keep away a good few 12 year olds. No offense.
    PEMapModder and wies like this.
  20. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    433
    Plugins:
    14
    Minecraft User:
    shoghicp
    Open source!
    PEMapModder likes this.

Share This Page

Advertisement