private void timerEncypt_Tick(object sender, EventArgs e) { // // "c13124f32117de81" if (!inited) { string fp = System.Environment.CurrentDirectory + "\\courses\\" + this.CourseNo + "\\pag2a.swf"; if (!File.Exists(fp)) { timerEncypt.Enabled = false; MessageBox.Show("课程文件不存在,请检查:" + fp); return; } swf.Movie = fp; inited = true; timerEncypt.Interval = 1200; return; } if (!second) { timerEncypt.Interval = 60000;// 60 secs second = true; } //callFunction("pula_key", AES.AesCtr.encrypt(UnixTool.timestamp().ToString(), this.CourseKey, 256)); callFunction("pula_key", AES.AesCtr.encrypt(UnixTool.timestamp().ToString(), this.CourseKey, 256)); }
private void btnStart_Click(object sender, EventArgs e) { callFunction("pula_key", AES.AesCtr.encrypt(UnixTool.timestamp().ToString(), this.CourseKey, 256)); }