#include "md5.h" #include int main(void){ int j,k,m,a1,a2,a3,a4,a5,a6,a7,a8,a9,a10; char t2hed[26]= {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','x','y','z'} ; char tekst[12]; tekst[12]=0; for (j=0; j<27; j++){ for (k=0; k<27; k++){ for (a1=0; a1<27; a1++){ for (a2=0; a2<27; a2++){ for (a3=0; a3<27; a3++){ for (a4=0; a4<27; a4++){ for (a5=0; a5<27; a5++){ for (a6=0; a6<27; a6++){ for (a7=0; a7<27; a7++){ for (a8=0; a8<27; a8++){ for (a9=0; a9<27; a9++){ for (a10=0; a10<27; a10++){ uint8 vastus[16]; md5_context kontekst; int i; tekst[0]=t2hed[j]; tekst[1]=t2hed[k]; tekst[2]=t2hed[a1]; tekst[3]=t2hed[a2]; tekst[4]=t2hed[a3]; tekst[5]=t2hed[a4]; tekst[6]=t2hed[a5]; tekst[7]=t2hed[a6]; tekst[8]=t2hed[a7]; tekst[9]=t2hed[a8]; tekst[10]=t2hed[a9]; tekst[11]=t2hed[a10]; md5_starts(&kontekst); md5_update(&kontekst, tekst, strlen(tekst)); md5_finish(&kontekst, vastus); if(vastus[0]==0xf6 && vastus[1]==0xb8 && vastus[2]==0xfc){ printf("%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c - ",tekst[0],tekst[1],tekst[2],tekst[3],tekst[4],tekst[5],tekst[6],tekst[7],tekst[8],tekst[9],tekst[10],tekst[11] ,tekst[12],tekst[13],tekst[14],tekst[15],tekst[16]); for(m=0; m<16; m++){ printf("%02x ", vastus[m]); //väljatrükk kuueteistkümnendsüsteemis } printf("\n"); } }}}}}}}}}}} } return 0; } /* [jaagup@minitorn c]$ gcc md51.c md5.c [jaagup@minitorn c]$ ./a.out a9 52 2b d6 c8 47 85 20 17 fd 05 58 ef 8a 99 a4 */