public bool AuthSerial(string filename) { try { byte[] b = File.ReadAllBytes(filename); Hashtable ht = Serialize.DeSerializeFromBytes(Yqun.Common.Encoder.Encrypt.DecryptBytes(b, "www.kingrocket.com")) as Hashtable; if (ht != null && ht.Count == 3) { string sss = ht["RegInfo"].ToString(); string ddd = ht["abc"].ToString(); return(sss.Equals("PASS") && ddd == GetCPUSerialNumber()); } } catch { } return(false); }