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.

Question about encrypt.

Featured Replies

  • Author
  • Localization

Viserion, posted Wed Jul 01, 2015 8:26 pm (6065)


Hi. :)

So, I'm learning about encrypt and working in my own encrypt using some lib. But my question is:
- Why manys MMORPG use zlib? In some benchmarks, the performance of zlib is bad compared with anothers libs...

Link: http://catchchallenger.first-world.info ... LZ4_vs_LZO

Thanks,
Cheers!
  • Author
  • Localization

Aidan729, posted Wed Jul 01, 2015 8:31 pm (6066)


Hey,

I think you are a little confused on what zLib actually is.

zLib is a datta compression library. Not an encryption.

a good example of a well written encryption library would be something more like Salsa20.

https://en.wikipedia.org/wiki/Salsa20

this encryption is specifically used in the later version of the .ff (fast file) asset archive for call of duty (past mw2)
  • Author
  • Localization

aluigi, posted Wed Jul 01, 2015 8:35 pm (6067)


I worked on similar stuff just recently.
lz4_fast is really awesome in terms of speed and with a good compression ratio so it's good for real time data or when uncompressing lot of data like big archives.

lzo is not so good in my opinion, in a "challenge" between lzo1, lzo1x and lzo2a the last one is the best.

If you have to compress a big amount of data with the best compression ratio then lzma and lzma2 are the choice.

Anyway the thread is twice off-topic: wrong section (Code talk was the good one) and encryption and compression mixed.
  • Author
  • Localization

Viserion, posted Wed Jul 01, 2015 11:26 pm (6069)


Sorry about section.

About topic, so, I looking a better speed and memory usage.

No one has any reason for which some companies choose the zlib?
  • Author
  • Localization

aluigi, posted Thu Jul 02, 2015 10:49 am (6075)


Because zlib has a very flexible API interface and is supported/wrapped on many programming languages.
It allows to keep the dictionary/state for using the compression on multiple blocks of data and do other things.

In the fast compression libraries only lz4 has something similar.

While for the libraries used to compress big amount of data there is lzma that is flexible and portable almost like zlib.
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.