[quote:myxou902]As a start, I'm very sure not all agree to this so making this feature optional would be fair for both sides.
Yeah ofc
[quote:myxou902]It means that 12 year old hacker wannabes can finally show off what they learned on youtube.com.
No actually. If you add an encryption key then the process wil have to be repeated for each new game and each build of said game if it uses a different encryption key
[quote:myxou902]it could take maybe 30 seconds to decrypt everything. Firstly, is that a trade-off you're happy to make?
30 seconds is merely nothing for adventure games or some arcade games that keep you for hours. So people may say that yes, they would be happy to make that trade-off.
[quote:myxou902]since it's decrypted in RAM, tools can still take your content from there
Yeah, again. But it's still harder to extract than just decompressing files. It offers a slight protection.
[quote:myxou902]So you could end up with a significant performance decrease, and no meaningful protection - the worst of both worlds.
This is why it should be optionnal and let the dev decide wether he wants to use it and try for himself if the trade-off it worth or not.
[quote:myxou902]I'd also point out that your code is already pretty well protected if you minify it.
This is clearly not a problem as even if people consider minifying as not a protection because it just removes useless spaces and returns, they can always obfuscate their code using some free online tool that will clearly make it even harder to reverse engineer https://www.javascriptobfuscator.com/