search
尋找貓咪~QQ 地點 桃園市桃園區 Taoyuan , Taoyuan

C# MD5+BASE64 – jashliao部落格

C# MD5+BASE64

資料來源: https://dotblogs.com.tw/mrsunboss/2013/04/07/99955#MD5

MD5 md5 = MD5.Create();//建立一個MD5
byte[] source = Encoding.Default.GetBytes(input.Text);//將字串轉為Byte[]
byte[] crypto = md5.ComputeHash(source);//進行MD5加密
string result = Convert.ToBase64String(crypto);//把加密後的字串從Byte[]轉為字串
Response.Write(“MD5加密:  ” + result);//輸出結果



熱門推薦

本文由 jashliaoeuwordpress 提供 原文連結

寵物協尋 相信 終究能找到回家的路
寫了7763篇文章,獲得2次喜歡
留言回覆
回覆
精彩推薦