#include #include #include #include "sk.h" #include "crypto.h" uchar hashed_pass[20] = "\x6c\x8c\x57\x1e\xab\xc2\x9f\xbd\xd1\x06\x06\x39\x06\x94\x87\x6d\xd3\xd3\x60\xaf"; int main(void) { struct hash h; uchar passwd[256]; while (fgets(passwd, sizeof(passwd), stdin) != NULL) { hash160(passwd, strlen(passwd), &h); if (!memcmp(h.val, hashed_pass, sizeof(hashed_pass) ) ) { printf("Found a match, password is %s\n", passwd); exit(0); } } return 0; }