Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
HashItUp
//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.Security.Cryptography; namespace Rextester { public class Program { public static void Main(string[] args) { string someid = "some string here"; Console.Write(BitConverter.ToString(GetFullHashBytes(someid))); } public static byte[] GetFullHashBytes(string stringToHash) { var bytes = new byte[stringToHash.Length * sizeof(char)]; Buffer.BlockCopy(stringToHash.ToCharArray(), 0, bytes, 0, bytes.Length); var hasher = MD5.Create(); var hash = hasher.ComputeHash(bytes); return hash; } } }
run
|
edit
|
history
|
help
0
Fibonacci Series
Fibonacci Numbers
Classes, properties, methods, ling begining
removeDuplicate C#
1.3 Basics: interfaces
person-student-teacher
Enum Extension
4341
nthFromLastElement
PhoneBook- Dictionary