1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How do svile-SW encode/encrypt and obfuscate your code?

Discussion in 'Development' started by LewBr, Jul 2, 2018.

  1. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    I want to publish a plugin but I do not want the users to change the author and the name of the plugin, for this I would like to make some kind of obfuscator just like svile does not change the propriety that I am, I know svile does with which in the function onEnable if it has not written the name of it in author in the plugin and the name of the plugin the plugin will not work, I would like to do the same, which type of encryption does svile use? and is it possible to break it? and also if you take some part of the code in onEnable the plugin will not work correctly
     
  2. Awzaw

    Awzaw Zombie Pigman Poggit Admin

    Messages:
    726
    GitHub:
    awzaw
    This has already been discussed here:
    https://forums.pmmp.io/threads/how-to-make-phar-files-unreadable.3370/

    In a nutshell, you can't prevent anyone who can code a plugin from doing that; you can only use obfuscation to make it too difficult for non-programmers to do so on their own, or too time-consuming and not interesting enough for anyone with the necessary skills to bother.
     
    Last edited: Jul 2, 2018
  3. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    jasonwynn10 likes this.
  4. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    you cant
    this is the shortest possible explanation ever
    even if you did it
    someone will happily undo what you did for breakfast
     
  5. r7vmc

    r7vmc Baby Zombie

    Messages:
    112
    GitHub:
    r7vmc
    Lol my thread
     
  6. LewBr

    LewBr Zombie

    Messages:
    385
    GitHub:
    lewbr
    so is it possible to break the svile obfuscator so easy? there must be some that are almost impossible
     
  7. Muqsit

    Muqsit Chicken

    Messages:
    1,548
    GitHub:
    muqsit
    None actually.
    No matter how you obfuscate your code, you'll need to deobfuscate the code while you're executing the program. Which means for every PHP obfuscator, there must be a deobfuscator.
     
    jasonwynn10 and EdwardHamHam like this.
  8. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    link it and maybe ill do it for breakfast

    also encrypting means no one can use it
    yes you can encrypt your plugin
    but now users cant use it
    unless you give them the encryption key
    BUT that key will also give them the source code
    that's encryption
    dont confuse it with obfuscation
     
    jasonwynn10 and EdwardHamHam like this.
  9. Saiini14 TV

    Saiini14 TV Silverfish

    Messages:
    15
    GitHub:
    saini14
    Svilex... SW... Lmao
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.