compression

How can I protect myself from a zip bomb?

How can I protect myself from a zip bomb? Question: I just read about zip bombs, i.e. zip files that contain very large amount of highly compressible data (00000000000000000…). When opened they fill the server’s disk. How can I detect a zip file is a zip bomb before unzipping it? UPDATE Can you tell me …

Total answers: 7

Python: Inflate and Deflate implementations

Python: Inflate and Deflate implementations Question: I am interfacing with a server that requires that data sent to it is compressed with Deflate algorithm (Huffman encoding + LZ77) and also sends data that I need to Inflate. I know that Python includes Zlib, and that the C libraries in Zlib support calls to Inflate and …

Total answers: 2

Python script for minifying CSS?

Python script for minifying CSS? Question: I’m looking for a simple Python script that can minify CSS as part of a web-site deployment process. (Python is the only scripting language supported on the server and full-blown parsers like CSS Utils are overkill for this project). Basically I’d like jsmin.py for CSS. A single script with …

Total answers: 6