public bool CheckKey(CertInfo KeyData,long GoldKey)
{
string company = KeyData.GetCompany;
string URL = KeyData.GetAddr;
byte[] CBytes = new byte[company.Length];
byte[] UBytes = new byte[URL.Length];
long Result = 0;
for (int i = 0; i < company.Length; i++)
{
CBytes[i] = Convert.ToByte(company[i]);
}
for (int i = 0; i < URL.Length; i++)
{
UBytes[i] = Convert.ToByte(URL[i]);
}
//we now have the Bytes Lets Gen that goldenKey
for (int i = 0; i < company.Length; i++)
{
Result = Result + CBytes[i] + CBytes[i];
}
for (int i = 0; i < URL.Length; i++)
{
Result = Result + UBytes[i] - UBytes[i];
}
Result = Result * KeyData.GetKey;
if (Result != GoldKey)
{
return false;
}
return true;
}
public string GenRandomRef()
{
return "i am nearly done";
}