using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Security.Authentication;
using System.Security.Cryptography;
namespace WindowsFormsApplication1
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
//¼ÓÃÜ·½·¨
public String EncryptCode(String message)
{
Byte[] clearBytes = new UnicodeEncoding().GetBytes(message);
Byte[] hashedBytes = ((HashAlgorithm)CryptoConfig.CreateFromName("MD5")).ComputeHash(clearBytes);
String tt = BitConverter.ToString(hashedBytes).Replace("-", "");
MessageBox.Show(tt);
return tt;
}
本内容试读结束,登录后可阅读更多
下载后可阅读完整内容,剩余1页未读,立即下载