>>10
The only programming language I know is fucking your mom's rectum, I can thrust in, pull back, prolapse it, and occasionally cum inside or outside. Your mom's ass is analtouring-complete.
are you still butthurt that I called you out on being a noob?
Name:
Anonymous2012-09-25 18:07
It is trivial to find the message which hashes to this value, or in general, all messages that hash to a particular value. I have discovered a truly marvelous proof of this, which this post is too small to contain.
int hash(char *str, int len) {
c = s;
MD5_Update(&c, str, len);
MD5_Update(&c, "ABCDEF0123456789", 16);
MD5_Final(buffer, &c);
c = s;
for (i = 0; i < 16; i++) {
snprintf(x, 3, "%02x", buffer[i]);
MD5_Update(&c, x, 2);
}
MD5_Update(&c, "ABCDEF0123456789", 16);
MD5_Final(buffer, &c);
return !bcmp(target,buffer+4,8);
}
int main(int argc, const char *argv[]) {
init_hash();
FILE *f;
size_t len;
char line[1024];
f = fopen(argv[1], "r");
if (f == NULL)
err(1, "foobar.txt");
/*
* This loop reads each line.
* Remember that line is not a C string.
* There is no terminating '\0'.
*/
while (fgets(line, 1024, f)) {
/*
* Do something with line.
*/
len = strlen(line);
line[len-1]=0;
if(hash(line,len-1)) {
printf("%s\n",line);
}
}
if (!feof(f))
err(1, "fgetln");