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

    iamadpond Banned

    Joined:
    Aug 24, 2013
    Posts:
    191
    Minecraft User:
    iamadpond
    Gah you got me.
  2. iamadpond
    Offline

    iamadpond Banned

    Joined:
    Aug 24, 2013
    Posts:
    191
    Minecraft User:
    iamadpond
    And please you can decrypt base64 in 3 seconds flat with the right tools, it's basically just asking you to do that ;)
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    100 likes to you.
  4. Elmo
    Offline

    Elmo Active Member

    Joined:
    May 9, 2014
    Posts:
    65
    Minecraft User:
    optrusty
    Can you use a open source copyright like:
    GPLv2
    Creative Commons
    and more
    PEMapModder likes this.
  5. iamadpond
    Offline

    iamadpond Banned

    Joined:
    Aug 24, 2013
    Posts:
    191
    Minecraft User:
    iamadpond
    A licence is a license, as long as it's open source.
  6. jerlegoman
    Offline

    jerlegoman Active Member

    Joined:
    Dec 10, 2013
    Posts:
    120
    Minecraft User:
    jeremy647
    You can put it in PMF
  7. iamadpond
    Offline

    iamadpond Banned

    Joined:
    Aug 24, 2013
    Posts:
    191
    Minecraft User:
    iamadpond
    It's really only secured in base64 I recall, which you can just Google a decryptor for one
    Darunia18 likes this.
  8. Dinokiller
    Offline

    Dinokiller Notable Member

    Joined:
    Sep 22, 2013
    Posts:
    376
    Minecraft User:
    Dinokiller_
    I guess code can be secured by changing variable names to random stuff like "aXjhsaXH" in a way that it still works. Also, removing whitespaces and indention can make it very hard to understand, but not impossible.
  9. iksaku
    Offline

    iksaku Notable Member Plugin Developer

    Joined:
    Sep 2, 2013
    Posts:
    1,130
    Plugins:
    4
    Minecraft User:
    iksaku
    Ñe, that's why I like to use Licenses, if I see that someone stole or sell my code, I can sue him :p

    EDIT: I use GPL v3 for that :3
  10. DA_Swagnemite
    Offline

    DA_Swagnemite Notable Member Plugin Developer

    Joined:
    Nov 17, 2013
    Posts:
    386
    Plugins:
    7
    Minecraft User:
    DA_SWAGNEMITE
    If you can use Google to correctly decrypt something it must be REALLY insecure XD
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It is just like zipping the plugin in something like GZip
  12. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    i think the /phar files is normaly secured cuz if the man (who didnt knows programming) who needs the source code cant get it and its funny.
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It is super easy. Just search it on the internet or download DevTools. A person with sufficient English knowledge could decode it easily.
  14. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Hiding code is basically impossible without PHP extensions because you have to decode it to PHP code at the final place to let the PHP engine parse it. People may not know how to decode it like me not for PMF, but once they have the code that loads these encoded plugins, they can dump it to readable PHP code.

    The only way to hide it completely (not really that complete, but hard without advanced knowledge) is making PHP extensions that can load encoded plugins directly into the engine without decoding them into readable code first, i.e. released versions are compiled code already since it is quite hard to decode compiled code (that is loaded by the PHP engine internally) back into normal PHP code language.
  15. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    390
    If you really want to protect the code, you can use the php bcompiler extension. It can compile your php script to byte code, and then you can make a simple plugin that loads the main plugin (compiled script). The only drawback to this method is that if someone want to use your plugin, they need to have the bcompiler extension too.
  16. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    But people 11-13 age didnt know about devtools.
  17. must_
    Offline

    must_ Active Member

    Joined:
    Aug 23, 2013
    Posts:
    139
    Minecraft User:
    must
    I am talking about secure code by hiding from 11-14 years old people because if they opening source code and retranslating it. the example is: the Private area protection plugins, they translating and etc/ then they are saying that tey are translated and saying that they ARE created plugin.

    And now there are lots of (private area plugins) from 1 author but named and edited from other peoples. and now in my country mess with the plugins from this forum
  18. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    You are insulting the 11-year-old me's ability to read English.
  19. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What I mean is, everyone who understands English and is able to run a server should be able to learn to use DevTools by reading.
  20. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    They won't get approved on this forum if they are copied code.

Share This Page

Advertisement