Skip to main content
gamedev.net
🔒 Locked

encryption/decryption?

Started by JasonL220 2 replies 400+ views
Original Post
JasonL220
JasonL220
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
Ra
Ra
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.
Ra

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.