Ejemplo n.º 1
0
 internal static void DecryptLolAccounts(string Region, string PlayerIGN)
 {
     string UsernaneEncrypted = System.IO.File.ReadAllText(System.IO.Path.Combine(Client.ExecutingDirectory, "Login", Region, PlayerIGN, "Username.Encrypted"));
     string PasswordEncrypted = System.IO.File.ReadAllText(System.IO.Path.Combine(Client.ExecutingDirectory, "Login", Region, PlayerIGN, "Password.Encrypted"));
     string UsernameDecrypt = Security.DecryptDes(UsernaneEncrypted, Client.Username, Client.Password);
     string PasswordDecrypt = Security.DecryptDes(PasswordEncrypted, Client.Username, Client.Password);
     Logins LoginData = new Logins();
     LoginData.Username = UsernameDecrypt;
     LoginData.Password = PasswordDecrypt;
     LoginList.AccountData.Add(LoginData);
 }
Ejemplo n.º 2
0
        internal static void DecryptLolAccounts(string Region, string PlayerIGN)
        {
            string UsernaneEncrypted = System.IO.File.ReadAllText(System.IO.Path.Combine(Client.ExecutingDirectory, "Login", Region, PlayerIGN, "Username.Encrypted"));
            string PasswordEncrypted = System.IO.File.ReadAllText(System.IO.Path.Combine(Client.ExecutingDirectory, "Login", Region, PlayerIGN, "Password.Encrypted"));
            string UsernameDecrypt   = Security.DecryptDes(UsernaneEncrypted, Client.Username, Client.Password);
            string PasswordDecrypt   = Security.DecryptDes(PasswordEncrypted, Client.Username, Client.Password);
            Logins LoginData         = new Logins();

            LoginData.Username = UsernameDecrypt;
            LoginData.Password = PasswordDecrypt;
            LoginList.AccountData.Add(LoginData);
        }