i have a hard time understanding the crypt function and since there aren't any technical details of how it works out there, i tested it and i observed that it is producing the same hash for different but similar words. i did some testings and this is what is happening.
hi = crypt("academics", "50"); hii = crypt("academicians", "50"); printf("academics : %s\n", hi); printf("academicians : %s\n", hii); printf("string compare : %d\n", strcmp(hi,hii));
academics : 50IlqAh9rdDJo
academicians : 50IlqAh9rdDJo
string compare : 0
how do we suppose to find the password if we can't compare valid hashes..