Wednesday, December 29, 2010

Create a SHA1 hash of a string

This function will take a string and return the hashed value
using System.Security.Cryptography;
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;

Thanks to Lars-Erik


MD5 Hash Generator said...

Nice function Beebe.

Anonymous said...

Просто хорошая страничка

telcan said...

I believe all small business should have business phone service. If you are one or two employee company or in business where all your staff is on the road, then you don't really need a business line. Just get a Toll Free number and it will work on top of your staff personal cell phones. When they receive a call, it will indicate that it is a business call on their call display so they can answer it professionally. All your staff can have their own professional voicemail system. You can monitor how many calls are answered and missed. I have been usingbusiness phone service from telcan. Check them out at: Check out Check out Business Phone Service