SHA1 Hash aus String erzeugen

using System.Security.Cryptography;

// SHA1 Hashsumme zu "Teststring1" erstellen
string sStringtoHash = "Teststring1";
string sOutPut = Convert.ToBase64String(new SHA1CryptoServiceProvider().ComputeHash(Encoding.ASCII.GetBytes(sStringtoHash)));