Custom? IO steam Encryption/Conversion??

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
There is a bunch of interesting information available about Cryptanalysis


Let me give an extreme example of what I mean, as it is something different.


Say we want to encrypt our png-files. PNG-files have a particular header with the first byte being 0x89.


Encryption: Change first byte from 0x89 to 0x79.


Decryption: Change first byte from 0x79 to 0x89.


Doesn't get much simpler than that. Should someone try to open the picture file they'll get a corrupted error or something like that.


Now let's say that they open the file in a text editor or hex editor. PNG is there in plaintext.


Why can't it be opened?


*opens a working PNG-file*


*compares and notices the different first byte*


*changes first byte and checks if that works*


Hey.... encryption broken :D


*hugs*


 - Zeriab
I've seen this in many games where they simply took off the header or changed the tag names around and you see a lot of people coming to reverse engineering forums crying about things not working etc etc.


Especially since most tools are written so that they check the header and go "oops, this isn't a PNG, bye bye".


Doesn't really make sense to say "well, this might be a PNG even if the first 4 bytes didn't say so...so let's keep reading!"


For me, hex editor is the natural way to look at unknown data, but for most people, it is likely a text file or give up.
 

Zeriab

Huggins!
Veteran
Joined
Mar 20, 2012
Messages
1,268
Reaction score
1,422
First Language
English
Primarily Uses
RMXP
Lol, so your underlying point is, its pointless. ?

I get what you mean about how the game must contain the secrets so in the end, someone whom is able to interpret the secrets to their true meaning will always be able to cause 'damage' wherever they see fit (should they so choose to). But I mean, isnt it at least worth making it a little more time consuming in the hope of being able to deter a few folk? :)

Also, I never thought of something to simple for an encryption method :D

Certainly got me thinking now...
Nope. Even though that as long as all secrets must be sent with the game the problem is practically unsolved, I believe there is still value in some encryption.

Basically from my point of view the encryption should be strong enough that a deliberate conscious action is required by the end user to break the encryption.

Yes, I have tried a game where I did accidentally circumvent the DRM. It started spewing out unencrypted resources, and created another .exe file which appeared not to tricker the time limit counter. :x

*hugs*

 - Zeriab
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,513
Reaction score
3,203
First Language
Binary
Primarily Uses
RMMZ
Lol I have never accidentally avoided any DRM systems. (note: accidentally...)

And yea, thats basically my view on it. As long as I can make it at least a little harder than opening some RGSSAD crap and stealing all my hard work, which is certainly possible. :D

Hell, I could just move everything important into various 'patches' that are constantly held on the computer and read at runtime into the script editor, so even when they break into the files via RGSSAD, they still dont have my code.

And with the whole .so thing, a lot more is possible. Still a few restrictions,but at last some things can be a little more hidden there as well :D
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,570
Latest member
fgfhdfg
Top