Skip to content
/ 0comp Public

Compress file without loss with an infinite compression rate.

Notifications You must be signed in to change notification settings

eax64/0comp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

0comp

This program let you compress file without loss with an infinite compression rate.

$> dd if=/dev/zero of=original bs=1M count=1
$> du -h original 
1.0M  original
$>
$> ./0comp.py -c original 
The compressed file has been saved in the file: AEJaaDkxQVkmU1k4VxzlAAgIQADABAAIIAAwzAUppggGxCAeLuSKcKEgcK45yg==
$> du -h AEJaaDkxQVkmU1k4VxzlAAgIQADABAAIIAAwzAUppggGxCAeLuSKcKEgcK45yg==
0  AEJaaDkxQVkmU1k4VxzlAAgIQADABAAIIAAwzAUppggGxCAeLuSKcKEgcK45yg==
$>
$> ./0comp.py -d AEJaaDkxQVkmU1k4VxzlAAgIQADABAAIIAAwzAUppggGxCAeLuSKcKEgcK45yg== > decompressed
$> du -h decompressed
1.0M  decompressed
$> md5sum original decompressed
b6d81b360a5672d80c27430f39153e2c  original
b6d81b360a5672d80c27430f39153e2c  decompressed

asciicast

You can also compress bigger file with the -b option:

$> dd if=/dev/urandom of=original bs=1M count=1
$> du -h original 
1.0M  original
$>
$> ./0comp.py -b compressed -c original 
The compressed file has been saved in the file: compressed
$> du -hc compressed/*
0  compressed/...
0  compressed/...
0  total
$>
$> ./0comp.py -d compressed > decompressed
$> md5sum original decompressed 
79619e28282cab77534b46b280122387  original
79619e28282cab77534b46b280122387  decompressed

About

Compress file without loss with an infinite compression rate.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages