All pastes #985348 Raw Edit

4 7

public text v1 · immutable
·published 2008-04-14 22:57 UTC
rendered paste body
public static string GetPreActivationCode(string licenseUserLastName)
{
    int num;
    string machineName = Environment.MachineName;
    int num2 = 0;
    for (num = 0; num <= (machineName.Length - 1); num++)
    {
        num2 += Strings.Asc(machineName.Substring(num, 1)) * 0x209;
    }
    for (num = 0; num <= (licenseUserLastName.Length - 1); num++)
    {
        num2 += Strings.Asc(licenseUserLastName.Substring(num, 1)) * 0x25f;
    }
    return num2.ToString("00000000");
}