Skip to content
Advertisement

Decompress LZString in Ruby

Is there any equivalent or open-source library for decompress using LZ String in Ruby ?

Code in Python :

x = lzstring.LZString()
decompress = x.decompressFromEncodedURIComponent("encrypted_data".decode('utf-8'))

Code in PHP :

LZCompressorLZString::decompressFromEncodedURIComponent("encrypted_data");

Advertisement

Answer

Is there any equivalent or open-source library for decompress using LZ String in Ruby ?

According to author of original (JavaScript) lz-string

Here is a Ruby version, by Altivi:

https://github.com/Altivi/lz_string

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement