Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
C# - MD5Hash
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using System.Text; using System.Security.Cryptography; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here Console.WriteLine(MD5Hash("admin")); } public static string MD5Hash(string input) { StringBuilder hash = new StringBuilder(); MD5CryptoServiceProvider md5provider = new MD5CryptoServiceProvider(); byte[] bytes = md5provider.ComputeHash(new UTF8Encoding().GetBytes(input)); for (int i = 0; i < bytes.Length; i++) { hash.Append(bytes[i].ToString("x2")); } return hash.ToString(); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
FindElementInAscendingSortedRotatedArray
DateTime Subtract TotalDays
Encryption & Decryption AES C#
RRE
anyonymous type pass to method in c#
Sum Matrix Row
dateTime parsing
Events
Print 1 to 100 without using loop
3
Please log in to post a comment.