Пример #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     richTextBox3.Text = Cos.KeyDecrypt(richTextBox1.Text, "tyyxuser");
     richTextBox4.Text = Cos.KeyDecrypt(Cos.KeyDecrypt(richTextBox2.Text, "tyyxadmin"), "tyyx");
 }
Пример #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     richTextBox2.Text = Cos.KeyEncrypt(Cos.KeyEncrypt($@"{textBox1.Text}~!{textBox2.Text}~!{textBox3.Text}", "tyyx"), "tyyxadmin");
 }
Пример #3
0
 //加密
 private void button10_Click(object sender, EventArgs e)
 {
     P("加密:" + Cos.KeyEncrypt("123456", "TYYX"));
 }
Пример #4
0
 //解密
 private void button11_Click(object sender, EventArgs e)
 {
     P("解密:" + Cos.KeyDecrypt("03E00D0A200A0D60A70CA0BC0D206406D0F107701904D0D2", "TYYX"));
 }
Пример #5
0
 //下载
 private void button8_Click(object sender, EventArgs e)
 {
     P("下载:" + Cos.KeyGet(textBox1.Text, textBox4.Text));
 }
Пример #6
0
 //写日志
 private void button9_Click(object sender, EventArgs e)
 {
     Cos.KeyLog("测试错误日志");
     Cos.KeyLog("测试信息日志", "0");
     P("测试日志写入成功");
 }
Пример #7
0
 //查询
 private void button6_Click(object sender, EventArgs e)
 {
     P("查询:" + Cos.KeyCx(textBox1.Text));
 }
Пример #8
0
 //上传
 private void button7_Click(object sender, EventArgs e)
 {
     P("上传:" + Cos.KeySet(textBox1.Text, textBox4.Text));
 }
Пример #9
0
 //充值
 private void button3_Click(object sender, EventArgs e)
 {
     P("充值:" + Cos.KeyCz(textBox1.Text, textBox2.Text));
 }
Пример #10
0
 //验证
 private void button1_Click(object sender, EventArgs e)
 {
     P("验证:" + Cos.KeyYz(textBox1.Text, textBox3.Text));
 }
Пример #11
0
 //删除
 private void button5_Click(object sender, EventArgs e)
 {
     P("删除:" + Cos.KeySc(textBox1.Text));
 }
Пример #12
0
 //解绑
 private void button4_Click(object sender, EventArgs e)
 {
     P("解绑:" + Cos.KeyJb(textBox1.Text));
 }
Пример #13
0
 //创建
 private void button2_Click(object sender, EventArgs e)
 {
     textBox1.Text = Cos.KeyXz(textBox2.Text);
     P(textBox1.Text == string.Empty ? "新增key失败" : "新增key成功");
 }