Name: Anonymous 2012-12-07 21:13
I have devised a way to compress an infinite amount of data to a single bit. I approached this problem by considering how compression traditionally works, and rethinking it. However, to achieve infinite encryption, my method requires a very intense algorithm that must be configured correctly to work properly, but this configuration can be recursively compressed with this method, so it is true, infinite compression. Proof of concept follows:
#include <sdtio.h>
#include <stdlib.h>
const unsigned char decompressConfigConstants[72] = {
0x49, 0x20, 0x72, 0x65, 0x61, 0x6C, 0x6C, 0x79, 0x20, 0x6C, 0x6F, 0x76, 0x65, 0x20, 0x74, 0x6F,
0x20, 0x73, 0x6E, 0x69, 0x66, 0x66, 0x20, 0x6D, 0x79, 0x20, 0x62, 0x6F, 0x79, 0x66, 0x72, 0x69,
0x65, 0x6E, 0x64, 0x73, 0x20, 0x70, 0x65, 0x6E, 0x69, 0x73, 0x20, 0x61, 0x66, 0x74, 0x65, 0x72,
0x20, 0x68, 0x65, 0x20, 0x63, 0x75, 0x6D, 0x73, 0x20, 0x69, 0x6E, 0x20, 0x6D, 0x79, 0x20, 0x61,
0x73, 0x73, 0x68, 0x6F, 0x6C, 0x65, 0x2E, 0x00
};
void decompress(int data)
{
char Zero = '0';
if ( data == 1 )
{
printf("%s",decompressConfigConstants);
}
else if ( data == 0 )
{
printf("%c",zero)
}
else
{
printf("%s","data corrupted");
}
}
int main(int argc, char ** args)
{
decompress(1);
return 0;
}