Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

How do I tell if something is compressed or encrypted?

Featured Replies

  • Author
  • Localization

Garo, posted Wed Apr 14, 2021 10:49 am (63369)


I'm a bit new to game modding
  • Author
  • Localization

aluigi, posted Wed Apr 14, 2021 11:32 am (63371)


Very quickly:

If it's compressed with an algorithm like lzss, lz4, and many others, the data will look like if the text strings are truncated or with some characters in the middle and the 32bit fields no longer have a recognizable structure.
Example: hello -> helylo or this_is_a_string -> this_.is.stri

If it's compressed with a bitfields oriented algorithm like deflate, the data will just look garbage.
Usually it's zlib or deflate for which it's easy to try a tool like offzip (https://aluigi.altervista.org/mytoolz.htm#offzip) for checking the data.

If it's encrypted with XOR using a password, you may see the original password repeated in the data (because the 0x00 bytes return the original key).

If it's encrypted with XOR using a one-byte password, you can notice a certain "sense" in the data and it's easy to scan it with a tool like findxor (https://aluigi.altervista.org/testz.htm).

If it's encrypted with a block cipher algorithm like AES (the simple ECB implementation) you will notice a sort of patterns of 16 bytes each, these patterns are identical if the bytes in the original file are the same (like a sequence of zeroes in the original file).
Blowfish has patterns of 8 bytes.

This is the quickest explanation that I thought about :)
Other users will provide more examples.

Ah, if you are interested in the identification of compression algorithms take a look here viewtopic.php?f=4&t=27
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.