| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #define _CRT_SECURE_NO_WARNINGS
- #include "sha256.h"
- // #include <stdio.h>
- // #include < string.h >
-
-
-
- void crypt_and_print(char input[])
- {
- char result[65];
- char diff[65] = "00000";
- char *istr;
- char buffer2[20];
- int temp;
-
- char str2[20];
-
-
-
- for (int i = 0; i < 1; i++)
- {
-
- char string[] = "xqqq";
-
- sprintf(buffer2, "%d", i);
- temp = 8 - strlen(buffer2);
- str2[0] = '\0';
- while (strlen(str2) != temp)
- strcat(str2, "0");
- strcat(str2, buffer2);
- strcat(string, str2);
- sha256_crypt(string, result);
-
- istr = strstr(result, diff);
-
-
- if (istr != NULL) {
- printf(istr);
- break;
- }
-
-
- }
-
- }
-
- int main()
- {
- char result[65];
-
- sha256_init(2048);
-
- crypt_and_print((char*)"");
-
- }
|