I open this thread to give the bug fix of "Trollface Password Decrypter"..
I rewrote the function of password with "str.size() % 4"
Language: C++
i tryed with 1.800 logins and it worked perfectly !
I rewrote the function of password with "str.size() % 4"
Language: C++
Code:
std::string pwDecrypt(std::string str)
{
int rm = str.size() % 4;
str = str.erase(0,rm != 0 ? rm : 4);
std::string str_dec;
for(unsigned int i = 1; i < str.size(); i += 2) str_dec += str[i];
str = str_dec;
str_dec.clear();
for(unsigned int i = 0; i < str.size(); i++)
{
if(i != 0 && i % 2 == 0) str_dec += " ";
str_dec += str[i];
}
std::stringstream ss(str_dec);
str.clear();
str_dec.clear();
int convert;
while(ss >> std::hex >> convert) str_dec.push_back(convert);
return str_dec;
}