Hash As Password
using System; using System.Web.Security; public static class SecurityHelper { public static string HashAsPassword(this string s, Guid salt) { return FormsAuthentication.HashPasswordForStoringInConfigFile(s + salt.ToString("D").ToLower(), "SHA1"); } }