Page 2 of 2

Re: [Lib] LOVEE [Love Encryption] Encrypt lua files & Images

Posted: Wed Dec 24, 2014 12:23 pm
by Robin
Good. Did you also found the part where it talks about why this method shouldn't be used?

Re: [Lib] LOVEE [Love Encryption] Encrypt lua files & Images

Posted: Wed Dec 24, 2014 12:27 pm
by Azhukar
Robin wrote:Good. Did you also found the part where it talks about why this method shouldn't be used?
I didn't bother reading about it, it doesn't interest me.

Re: [Lib] LOVEE [Love Encryption] Encrypt lua files & Images

Posted: Wed Dec 24, 2014 12:53 pm
by Atton
Robin wrote:
Atton wrote:Try this.
What's the name of that algorithm?
Stolen from the MTA Source code and slightly modified by a third party.

Re: [Lib] LOVEE [Love Encryption] Encrypt lua files & Images

Posted: Wed Dec 24, 2014 3:06 pm
by zorg
Actually, going by the names of the functions, it's rather the XTEA algorithm, not TEA. (or both, idk)
But seeing as there's a decode function, this is again laughably easy to decrypt for oneself.

Re: [Lib] LOVEE [Love Encryption] Encrypt lua files & Images

Posted: Wed Dec 24, 2014 3:31 pm
by Robin
And then there's the fact that the code that uses this has to store the password in plaintext, otherwise no-one can even play the game.

Re: [Lib] LOVEE [Love Encryption] Encrypt lua files & Images

Posted: Fri Dec 26, 2014 12:54 pm
by Atton
Robin wrote:And then there's the fact that the code that uses this has to store the password in plaintext, otherwise no-one can even play the game.
Xor it and it should be pretty hard to find. Well that is assuming you are working with C++.

Re: [Lib] LOVEE [Love Encryption] Encrypt lua files & Images

Posted: Sun Dec 28, 2014 10:57 pm
by Positive07
Store each character in an int, 16 bits are enough, left shift each character four bit, to decode, just right shift them... It looks like cr*p in a hex editor