C#中用MD5實現數據加密

發表于:2008-05-30來源:作者:點擊數: 標簽:數據
關鍵字:C#中用MD5實現數據加密

C#中用MD5實現數據加密

using System.Security.Cryptography;
using System.Text;
  private void button1_Click(object sender, System.EventArgs e)
  {
   byte[] bt=UTF8Encoding.UTF8.GetBytes(textBox1.Text );//UTF8需要對Text的引用
   MD5CryptoServiceProvider objMD5;
   objMD5=new MD5CryptoServiceProvider ();
   byte[] output=objMD5.ComputeHash (bt);
   textBox2.Text =BitConverter.ToString (output); 
  }

原文轉自:http://www.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97