Securing data
How would you go about scrambling a .bmp file so it cant be read? I need to do this somehow so people with my game client cant edit or steal art. If scrabling it isn't how its usually done then please tell me the way most people do this. Thanks
Some ideas:
1) Custom image format. Easy to reverse if someone really wants the data, but it's a start.
2) Encryption. This can be very hard to reverse, but you have to keep the key somewhere, so someone who wants to steal it, can find it. It's a bit hard to find an encryption key inside a complete application, but it's possible.
3) Custom compression format. This can be better than encryption, but remember not to save the image, in case to load it from disk (no caching). Decompress and load it from memory directly.
One note though. If you are using OpenGL and the bmp is going to be used as a texture, i don't think there is any chance to hide it from a potential "thief". This is because programs like GLIntercept can extract for you all the textures an application uses. In Direct3D i don't know if it's possible, but i imagine that there must be something similar.
HellRaiZer
1) Custom image format. Easy to reverse if someone really wants the data, but it's a start.
2) Encryption. This can be very hard to reverse, but you have to keep the key somewhere, so someone who wants to steal it, can find it. It's a bit hard to find an encryption key inside a complete application, but it's possible.
3) Custom compression format. This can be better than encryption, but remember not to save the image, in case to load it from disk (no caching). Decompress and load it from memory directly.
One note though. If you are using OpenGL and the bmp is going to be used as a texture, i don't think there is any chance to hide it from a potential "thief". This is because programs like GLIntercept can extract for you all the textures an application uses. In Direct3D i don't know if it's possible, but i imagine that there must be something similar.
HellRaiZer
Look into zlib and compress your files into arhcives. It is not full proof protection but it will work well enough.
Thanks for your help. I checked out zlib and it looks pretty good but is it compatible with Allergo?
Would it be illegal to use Quake's .pak file and use PhysicsFS to read the data? That seems to be an option unless Quake copyrighted their .pak format.
Quote:Original post by Grant1219
Would it be illegal to use Quake's .pak file and use PhysicsFS to read the data? That seems to be an option unless Quake copyrighted their .pak format.
Quake3's pak format is not proprietory and can be read using winrar.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement