Answers for "c# md5 hash bouncycastle encypt decrypt with key"

C#
0

c# md5 hash bouncycastle encypt decrypt with key

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();           
  }       
}
Posted by: Guest on June-17-2021

C# Answers by Framework

Browse Popular Code Answers by Language