Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 581 Bytes

encryption.md

File metadata and controls

22 lines (14 loc) · 581 Bytes

Encryption

It's not really Encryption but anyway, some game data text files are encrypted using Two's complement. Since it's used to represent negative values in signed integers, one can simply de-/encrypt it using the sign operator -.

for example in C:

char decrypted = -encrypted;

Encrypted Files

Usualy all files ending with .cod.

  • editor.cod
  • figuren.cod
  • haeuser.cod
  • text.cod

Notes

MDCII-Engine Implementation