Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Obfuscation

knot126 edited this page Dec 27, 2023 · 3 revisions

Notice

The segment obfuscation/DRM project has been abandoned entirely and will be removed from Shatter soon.

show old page

Note

Obfuscation is not implemented in the game side yet, so it cannot be used as it's only added for development purposes.

Segment obfuscation allows segments to be encrypted at export time. This makes it somewhat harder to import or copy segments to foreign mods, but please remember that this protection can always be cracked and will only be useful to combat casual stealing.

Technical details

Segments are encrypted using the XTEA block cipher in CTR mode, using XOR to combine the nonce and counter.