Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
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.
Test equality...1
Retirar valores das tags de um XML padrão TISS/ANS SIB
Non Generic object based class
Custom long date
page 2
helloworld
Encrption & Decryption C#
lasses, properties, methods, ling begining
Find if the given word occurs in the string necessarily in that order.
Hi
stackse - search stackoverflow differently
Please log in to post a comment.