I converted Sednogmah's code to c# so for those of us not to familiar with java .
You can download the Authenticator.cs from MediaFire.com
To create a new authenticator...
Code:
using BlizzAuthenticator;
MobileAuth newauth;
if (new Authenticator().CreateAuthenticator("EU",out newauth))
{
Console.WriteLine("Token:\t\t{0}", newauth.Token);
Console.WriteLine("Serial:\t\t{0}", newauth.Serial);
Console.WriteLine("Time Diff:\t{0}", newauth.TimeDifference);
}
else
{
Console.WriteLine("Failed to create Emulator, check network");
}
Console.ReadLine();
To Generate a new authentication Code...
Code:
using BlizzAuthenticator;
//Automatically syncronizes your device with Blizz servers
string key = new Authenticator().GenerateAuthenticatorCode("Serial", "Token");
or
Code:
using BlizzAuthenticator;
//Use a previous synchronization
string key = new Authenticator().GenerateAuthenticatorCode("Serial", "Token", time_Difference);
To retrieve the time Difference between your device and wow servers...
Code:
using BlizzAuthenticator;
long dif;
if (new Authenticator().GetTimeDifference("EU", out dif))
{
Console.WriteLine("Time Diff:\t{0}", dif);
}
else
{
Console.WriteLine("Synchronization Failed, check network");
}