Jump to content
  • Advertisement
Sign in to follow this  
JasonL220

encryption/decryption?

This topic is 4557 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i would like to encrypt my resource files in my projects so as they cant be use without permition but i'm unsure how to encrypt and decript them? The type of files i was thinking of was .bmp .tga .jpeg .ms3d etc. thanks

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
By definition, if your game can decrypt the resources, the players of your games can decrypt the resources.

Share this post


Link to post
Share on other sites
The simplest way would be to XOR the file by a number or string. Then you'd just XOR it again to get the original file.

If you want something more secure you'll want to look into actual encryption algorithms. IMO this seems like a waste of time, because if someone is determined enough they'll be able to get your resource files, and it's extra work to implement.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!