Home
Manage Your Code
Snippet: C# SHA-1 Hash Generation from a string (C#)
Title: C# SHA-1 Hash Generation from a string Language: C#
Description: Generate a SHA-1 hash from an input string. ref: http://dotnetpulse.blogspot.com/2007/12/sha1-hash-calculation-in-c.html Views: 946
Author: Kevin Shuma Date Added: 12/12/2011
Copy Code  
1        #region " SHA-1 Hash Generation "   ...        #endregion
Usage
using System;
using System.Security.Cryptography;
using System.Text;
Notes
var hash = Helper.CalculateSHA1Hash("input string", Encoding.Unicode);