Socket
Book a DemoInstallSign in
Socket

github.com/unixpickle/compression-solution

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/unixpickle/compression-solution

Source
Go Modules
Version
v0.0.0-20240529222443-e3b8c85c95af
Version published
Created
Source

compression-solution

This is the solution to my compression challenge.

To produce the data used for the challenge, gunzip the files in inputs and run:

$ mkdir files
$ for i in {1..7}; do go run . encode -input inputs/file${i} -output files/file${i}; done

The way the challenge is setup is that the input files are encrypted with AES. The underlying files themselves are simple text patterns that are easy to compress, but compressing them is difficult unless you can decrypt them first.

The compression procedure first decrypts the file, then gzips the contents. The decompression procedure un-gzips the contents, and then re-encrypts it.

FAQs

Package last updated on 29 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts