Giter VIP home page Giter VIP logo

pyliblzfse's Introduction

             _ _ _     _        ___           
            | (_) |   | |      / __)          
 ____  _   _| |_| | _ | |_____| |__ ___  ____ 
|  _ \| | | | | | || \| (___  )  __)___)/ _  )
| | | | |_| | | | |_) ) |/ __/| | |___ ( (/ / 
| ||_/ \__  |_|_|____/|_(_____)_| (___/ \____)
|_|   (____/                                  

Overview
========

pyliblzfse is a Python (https://www.python.org/) module that provides LZFSE 
and LZVN compression and decompression through the reference implementation 
provided by Apple (https://github.com/lzfse/lzfse).

Installation
============

  pip3 install pyliblzfse

If you are using python 3.7 or higher, you don't need a dev environment to
install on macOS or Windows.

Building
========

  $ git clone --recursive https://github.com/ydkhatri/pyliblzfse
  $ python setup.py build

Usage
=====

  import liblzfse
  try:
    decrypted_data = liblzfse.decompress(encrypted_data)
  except liblzfse.error:
    print('liblzfse had an error!')

The library expects encrypted_data to be of the form b'bvx*......bvx$'.

Notes
=====

This is a fork of pylzfse project, which incorporates certain improvements and
provides python wheel builds (for 3.7+) so end users do not need to compile it.

Credits and Legal Information
=============================

pyliblzfse is free and unencumbered software released under the terms of the MIT
license; see COPYING for the license text. For a list of its authors and
contributors, see AUTHORS.

The ASCII art logo at the top was made using 
http://manytools.org/hacker-tools/ascii-banner

pyliblzfse's People

Contributors

dimkr avatar ofirbb avatar statusreport avatar ydkhatri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

m1stadev

pyliblzfse's Issues

About convert liblzfse to png img

Hi!
Now I have some '.depth' files captured by iphone. All those files are compressed by LZFSE. And
I succeed to use your lib to decompress those files and get numbers like: ''
I wonder if I can transfrom them to '
.png' type. Can you please figure me out?

can decompress bvx2 header files?

I am trying to decompress ipa on Windows.
The json-like data that exists at the top of ipa has been decrypted, but the subsequent files from bvx2 to bvx $ are not decompressed.
Is this library not supported? Also, the bvxn (lzn compress) file could not be decompressed.
Here is the very simple code used for decompression.

import liblzfse

fw = open('decompressed.dat', 'wb')
with open("testbvx", "rb") as fileread:
s = fileread.read()
decrypted_data = liblzfse.decompress(s)
fw.write(decrypted_data)
fw.close()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.