Run Code
|
API
|
Code Wall
|
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
w
asdfghjiu
Collatz Conjecture Using Pi
2.2 gz
AdventCode
Nuzrath 284
Overloading == operator (for comparing values inside objects)
How to find the first index of a sub-string in a given string
dxlfkgjdlkgj
circleTest