Le function cryptPassword Il est une recherche Il doit être un while
public static char[] HASH = new char[]
{
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p',
'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F',
'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
'W', 'X', 'Y', 'Z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '-', '_'
};
public static string cryptPassword(string Key, string Password)
{
StringBuilder _loc4_ = new StringBuilder();
_loc4_.Append("#1");
int _loc5_ = 0;
while (_loc5_ < Password.Length)
{
char pass = Password[_loc5_];
char key = Key[_loc5_];
int APass = pass / 16;
int AKey = pass % 16;
int ANB = (APass + (int)key) % HASH.Length;
int ANB2 = (AKey + (int)key) % HASH.Length;
_loc4_.Append(HASH[ANB]);
_loc4_.Append(HASH[ANB2]);
_loc5_++;
}
return _loc4_.ToString();
}