Skip to content

Instantly share code, notes, and snippets.

View kaefer3000's full-sized avatar

Tobias Käfer kaefer3000

  • Karlsruhe Institute of Technology (KIT)
  • Karlsruhe, Germany
View GitHub Profile
kaefer3000 /
Created August 23, 2018 18:00 — forked from Tblue/
MozLz4a compression/decompression utility
#!/usr/bin/env python
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to
# compress e. g. bookmark backups (*.jsonlz4).
# This file format is in fact just plain LZ4 data with a custom header (magic number [8 bytes] and
# uncompressed file size [4 bytes, little endian]).
# This Python 3 script requires the LZ4 bindings for Python, see: