📜  c# md5 hash bouncycastle encypt decrypt with key - C# Code Example

📅  最后修改于: 2022-03-11 14:48:44.928000             🧑  作者: Mango

代码示例1
using SystemX = System.Security.Cryptography;
public static string Md5(string data)        {            
  var text = data;            
  using (var md5 = SystemX.MD5.Create())
  {                var bs = md5.ComputeHash(Encoding.UTF8.GetBytes(text)); 
   return BitConverter.ToString(bs).Replace("-", "").ToLower();           
  }       
}