Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# generate guid from hash

using System.Security.Cryptography;

        private static Guid GuidFromString(string input)
        {
            using (MD5 md5 = MD5.Create())
            {
                byte[] hash = md5.ComputeHash(Encoding.Default.GetBytes(input));
                return new Guid(hash);
            }
        }
 
PREVIOUS NEXT
Tagged: #generate #guid #hash
ADD COMMENT
Topic
Name
7+6 =