public update() { this.run_log.Enqueue("升级模块初始化"); rsa UserRsa = new rsa(); //不存在就创建 if (!File.Exists("Private.xml") || !File.Exists("Public.xml")) { UserRsa.RSAKey("Private.xml", "Public.xml"); this.uid = UserRsa.sha1(UserRsa.readFile("Public.xml")); } else { this.uid = UserRsa.sha1(UserRsa.readFile("Public.xml")); } }
public update() { this.run_log.Enqueue("升级模块初始化"); rsa UserRsa = new rsa(); //不存在就创建 if (!File.Exists("Private.xml") || !File.Exists("Public.xml")) { UserRsa.RSAKey("Private.xml", "Public.xml"); this.uid = UserRsa.sha1(UserRsa.readFile("Public.xml")); } else { this.uid = UserRsa.sha1(UserRsa.readFile("Public.xml")); } if (File.Exists(Application.StartupPath + @"\config.ini")) { this.config = new INI(Application.StartupPath + @"\config.ini"); } }