Solved Making source one line?

Discussion in 'Rust Development' started by ZeusGOD, Sep 13, 2017.

  1. Making source one line?
     
    Last edited by a moderator: Sep 13, 2017
  2. Wulf

    Wulf Community Admin

  3. Wulf

    Wulf Community Admin

    There are multiple methods mentioned in that post, I'd start by trying them.
     
  4. Why do you even need to do so?
    If you want to protect your plugin from being stolen - it won't work. What would intercept users from recreating it?
    You can try to manually rename all your custom variables\function to something like AAA,AAB,AAC etc - you can use Notepad++ for replacing....
    BUT! Would it really work? If you want to protect your code you can also try to compile it into the dll, but it's really complicated and, of course, over users will be able to decompile it(unless you will be using good code obfustractor) and still - it can be decompiled.
     
  5. Will the plug-in break if I use an obfuscator?
     
  6. Kinda. If you use constructions like this:
    Code:
    enum Test
    {
        Test1,
        Test2,
        Test3
    }
    private Test ArgumentToEnum(string argument)
    {
        return (Test)Enum.Parse(typeof(Test), argument);
    }
    They won't work anymore, because your enum after obfustraction would look like this:
    Code:
    enum Jahsbdnakjdlkajsdl
    {
        asdlakjsdlajsdas,
        alsjdlaksjdlasjd,
        asdjlakjlhashfjg
    }
    There are some more stones under water, you can google it.
     
  7. OMG ! thank you bro