Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

get sha1 hashcode from c#

public static string GetSha1(string value)
        {
            var data = Encoding.ASCII.GetBytes(value);
            var hashData = new SHA1Managed().ComputeHash(data);
            var hash = string.Empty;
            foreach (var b in hashData)
            {
                hash += b.ToString("X2");
            }                
            return hash;
        }
Source by findnerd.com #
 
PREVIOUS NEXT
Tagged: #hashcode
ADD COMMENT
Topic
Name
5+8 =