Hello,
Earlier this evening, whilst working on my project, I began wondering, is it possible to encrypt textures, so that no one can mod them or put something inappropriate, that may cause problems.
Theoretical plan:
Tool:
1) Convert textures to byte arrays
2) Encrypt with RSA Private key
3) Store *.bin files
In game:
1) Open *.bin files
2) Decrypt with RSA Public key
3) Load byte arrays into memory
Idea is that only me, as a developer, can place textures into the game.
Of course, i know that its still possible to place custom stuff into the game, but i want it to be a bit more complicated than "replace a png file".
Or is it actually a common tactic?
Or maybe RSA is not meant for that...