private static string GetHash(string s)
        {
            HashAlgorithm arg_12_0 = new MD5CryptoServiceProvider();

            byte[] bytes = new ASCIIEncoding().GetBytes(s);
            return(FingerPrint.GetHexString(arg_12_0.ComputeHash(bytes)));
        }
 private static string BiosId()
 {
     return(string.Concat(new string[]
     {
         FingerPrint.identifier("Win32_BIOS", "Manufacturer"),
         FingerPrint.identifier("Win32_BIOS", "SMBIOSBIOSVersion"),
         FingerPrint.identifier("Win32_BIOS", "IdentificationCode"),
         FingerPrint.identifier("Win32_BIOS", "SerialNumber"),
         FingerPrint.identifier("Win32_BIOS", "ReleaseDate"),
         FingerPrint.identifier("Win32_BIOS", "Version")
     }));
 }
        private static string CpuId()
        {
            string text = FingerPrint.identifier("Win32_Processor", "UniqueId");

            if (text == "")
            {
                text = FingerPrint.identifier("Win32_Processor", "ProcessorId");
                if (text == "")
                {
                    text = FingerPrint.identifier("Win32_Processor", "Name");
                    if (text == "")
                    {
                        text = FingerPrint.identifier("Win32_Processor", "Manufacturer");
                    }
                    text += FingerPrint.identifier("Win32_Processor", "MaxClockSpeed");
                }
            }
            return(text);
        }
 public static string Value()
 {
     if (string.IsNullOrEmpty(FingerPrint._fingerPrint))
     {
         FingerPrint._fingerPrint = FingerPrint.GetHash(string.Concat(new string[]
         {
             "CPU >> ",
             FingerPrint.CpuId(),
             "\nBIOS >> ",
             FingerPrint.BiosId(),
             "\nBASE >> ",
             FingerPrint.BaseId(),
             FingerPrint.VideoId(),
             "\nMAC >> ",
             FingerPrint.MacId()
         }));
     }
     return(FingerPrint._fingerPrint);
 }
 private static string MacId()
 {
     return(FingerPrint.identifier("Win32_NetworkAdapterConfiguration", "MACAddress", "IPEnabled"));
 }
 private static string VideoId()
 {
     return(FingerPrint.identifier("Win32_VideoController", "DriverVersion") + FingerPrint.identifier("Win32_VideoController", "Name"));
 }
 private static string BaseId()
 {
     return(FingerPrint.identifier("Win32_BaseBoard", "Model") + FingerPrint.identifier("Win32_BaseBoard", "Manufacturer") + FingerPrint.identifier("Win32_BaseBoard", "Name") + FingerPrint.identifier("Win32_BaseBoard", "SerialNumber"));
 }
 private static string DiskId()
 {
     return(FingerPrint.identifier("Win32_DiskDrive", "Model") + FingerPrint.identifier("Win32_DiskDrive", "Manufacturer") + FingerPrint.identifier("Win32_DiskDrive", "Signature") + FingerPrint.identifier("Win32_DiskDrive", "TotalHeads"));
 }