一种加密算法
来源:互联网 发布:淘宝鹊桥活动佣金插件 编辑:程序博客网 时间:2024/04/29 23:15
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Nutqq;
namespace QQencrypt
{
public partial class Form1 : Form
{
private Crypter QQCrypter = new Crypter();
public Form1()
{
InitializeComponent();
}
private void buttonEncrypt_Click(object sender, EventArgs e)
{
try
{
byte[] source = ASCIIEncoding.ASCII.GetBytes(textBoxSource.Text);
byte[] key = ASCIIEncoding.ASCII.GetBytes(textBoxKey.Text);
byte[] Encrypt = QQCrypter.encrypt(source, key);
textBoxEncrypt.Text = ASCIIEncoding.ASCII.GetString(Encrypt);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void buttonDecrypt_Click(object sender, EventArgs e)
{
try
{
byte[] Encrypt = ASCIIEncoding.ASCII.GetBytes(textBoxEncrypt.Text);
byte[] Decrypt = QQCrypter.decrypt(Encrypt,ASCIIEncoding.ASCII.GetBytes(textBoxKey.Text));
textBoxDecrypt.Text = ASCIIEncoding.ASCII.GetString(Decrypt);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
}
}
- 一种加密算法
- 一种简单的加密算法
- RSA加密算法是一种非对称加密算法
- 一种近乎完美的加密算法:扩散加密算法
- DES加密算法的一种简单实现
- DES加密算法的一种简单实现
- 字典加密,一种可逆的加密算法
- 一种简单的table异或加密算法
- 一种网络数据传输加密算法的设想
- 加密算法
- 加密算法
- 加密算法
- 加密算法
- 加密算法
- 加密算法
- 加密算法
- 加密算法
- 加密算法
- 用遗传算法加强足球游戏的人工智能
- “循环赛日程安排”问题的分而治之解决算法
- 无敌的Word CommandBar和它的Control们
- 不动点问题的解决
- eclipse官方提供的php插件的使用
- 一种加密算法
- 第四周作业
- Windows文本框星号密码查看器
- 说说大型高并发高负载网站的系统架构
- 格雷码生成算法
- php正则表达式学习笔记
- 棋盘覆盖算法
- PHP5 面向对象程序设计之:this, self, parent, static和const
- c#字符串及数组操作