but i tried a shortcut to directly put the chars straight onto hash1, but it doesnt work properly, it just overwirtes part of the hash1 with some random garbage charsCode:
char *challengeConcat = "whatever.....";
char hash1[88] = "edp{}e|wxrdse}}u666666666666666666666666666666666666666666666666";
char incoming[32];
int x, y = 0;
for (x = 0; x < 32; x++, y++)
{
if (0x5C == challengeConcat[y])
{
++y;
if (bValidEscape[challengeConcat[y]]) incoming[x] = esc2ascii[challengeConcat[y]];
else x--;
}
else incoming[ x] = challengeConcat[y];
}
and then what i do is
memcpy(&hash1[64], incoming, 32);
any ideas guys?
Code:char *challengeConcat = "whatever.....";
char hash1[88] = "edp{}e|wxrdse}}u666666666666666666666666666666666666666666666666";
int x, y = 0;
for (x = 0; x < 32; x++, y++)
{
if (0x5C == challengeConcat[y])
{
++y;
if (bValidEscape[challengeConcat[y]]) hash1[strlen(hash1) - x] = esc2ascii[challengeConcat[y]];
else x--;
}
else hash1[strlen(hash1) - x] = challengeConcat[y];
}
