Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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();           
  }       
}
Source by www.programmersought.com #
 
PREVIOUS NEXT
Tagged: #hash #bouncycastle #encypt #decrypt #key
ADD COMMENT
Topic
Name
1+8 =