Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

unbreaable encryption

Name: Anonymous 2009-04-29 20:57


#include <stdio.h>

int main(int argc, char **argv)
{
    FILE *f = fopen(argv[1],"rt")
    fseek(f,0,SEEK_END);
    int length = ftell(f);
    fseek(f,0,SEEK_CUR);
   
    char fdata[length];
    fread(f,1,length,ftell);
    fclose(f);

    f = fopen("output.txt","wt");
    fwrite(fdata,1,length,f);
    fclose(f);

    return 0;
}

Name: Anonymous 2009-04-30 7:36

Right, so I've xor'd an 8-bit ASCII character with a one time pad created with raw data from random source that, due to the vagaries of the universe, has around 60% chance of producing a zero bit, and a 40% chance of producing a one bit.
Here it is, for your enjoyment, in base two:
11110111
Now seeing how the size of the input string is small enough that computing power shouldn't be a problem, and that the bias in the random source is so severe, feel free to show us your fancy recovery algorithms.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List