stegosphere.compression module

stegosphere.compression.compress(binary_string)

Compresses a binary string using lzma and returns the compressed binary string. The padding length is stored in the first 8 bits.

stegosphere.compression.decompress(compressed_binary_string)

Decompresses the compressed binary string back to the original binary string.