C# SHA384+BASE64
C# SHA384+BASE64
資料來源: https://dotblogs.com.tw/mrsunboss/2013/04/07/99955#SHA384
SHA384 sha384 = new SHA384CryptoServiceProvider();//建立一個SHA384
byte[] source = Encoding.Default.GetBytes(input.Text);//將字串轉為Byte[]
byte[] crypto = sha384.ComputeHash(source);//進行SHA384加密
string result = Convert.ToBase64String(crypto);//把加密後的字串從Byte[]轉為字串
Response.Write(“SHA384加密: ” + result);//輸出結果