Hash As Password : Hash « Security « C# / C Sharp






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");
    }
}

   
  








Related examples in the same category

1.Verify Hex Hash, Base64 Hash, Byte Hash
2.Generic Hash
3.Get Public Key Hash with HttpClientCertificate
4.Get Public Key Hash with SHA256
5.Get Public Key Hash for a string
6.Generate Hash
7.Get Hash for password
8.Generates a hash code of the input string
9.Hash Data
10.Hash Password
11.Get SHA256 Hash
12.Create Password Hash