HI Everyone
I have a problem with the pw decryptin Code for FlashFXP PW's
I want write this Code with NO C-LIBS.
But now the PW Decrypt Function don't work anymore, look at my Code:
Code:
void flashfxp_pwddec(char *pwd) {
char *enc,
*ptr;
int len,
old,
i;
enc = FXPDATA;
len = strlen(pwd) >> 1;
if(!len) return;
len--;
wsprintfA(pwd,"%02X", &old);
ptr = pwd;
pwd += 2;
while(len--) {
wsprintfA(pwd,"%02X", &i);
i ^= *enc++;
if(old >= i) i--;
*ptr++ = i - old;
wsprintfA(pwd, ("%02X", &old);
pwd += 2;
if(!*enc) enc = FXPDATA;
}
*ptr = 0;
}
I replace the function sscanf with wsprintfA.
But now the decryptet pw is wrong.
Can someone tell me whats wrong with this funktion?
Thx for your help
greeZ
mashroom100