c# md5 string
public static string CreateMD5(string input)
{
// Use input string to calculate MD5 hash
using (System.Security.Cryptography.MD5 md5 = System.Security.Cryptography.MD5.Create())
{
byte[] inputBytes = System.Text.Encoding.ASCII.GetBytes(input);
byte[] hashBytes = md5.ComputeHash(inputBytes);
// Convert the byte array to hexadecimal string
StringBuilder sb = new StringBuilder();
for (int i = 0; i < hashBytes.Length; i++)
{
sb.Append(hashBytes[i].ToString("X2"));
}
return sb.ToString();
}
}
Also in C#:
- c# math to radiant
- asp.net core timeout
- how to say or in c#
- or in unity
- How to search for a string from readline in c#
- c# expression func automatically select return type
- c# loop through two dimensional array
- c# listview
- application.stop unity
- switch case c# contains
- unity normalize vector2
- what is the namespace for textmesh pro
- unity instantiate
- convert string to datetime c#
- unity rotate towards mouse
- c# update control from another thread
- c# warning CS0108
- Globalization and localization in ASP.NET Core
- validating file upload asp.net core mvc
- lista generica como parametro de un metodo en c#
- how to get the askii code of a char in c#
- dynamic convert type c#
- .net core cli
- cursorlockmode cannot be used as a method C#