ydkhatri / pyliblzfse Goto Github PK
View Code? Open in Web Editor NEWPython bindings for LZFSE
License: MIT License
Python bindings for LZFSE
License: MIT License
_ _ _ _ ___ | (_) | | | / __) ____ _ _| |_| | _ | |_____| |__ ___ ____ | _ \| | | | | | || \| (___ ) __)___)/ _ ) | | | | |_| | | | |_) ) |/ __/| | |___ ( (/ / | ||_/ \__ |_|_|____/|_(_____)_| (___/ \____) |_| (____/ 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
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()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.