FormsAuthentication.HashPasswordForStoringInConfigFile(String, String) Methode

Definitie

Let op

The recommended alternative is to use the Membership APIs, such as Membership.CreateUser. For more information, see http://go.microsoft.com/fwlink/?LinkId=252463.

Produceert een hashwachtwoord dat geschikt is voor het opslaan in een configuratiebestand op basis van het opgegeven wachtwoord en hash-algoritme.

public:
 static System::String ^ HashPasswordForStoringInConfigFile(System::String ^ password, System::String ^ passwordFormat);
public static string HashPasswordForStoringInConfigFile(string password, string passwordFormat);
[System.Obsolete("The recommended alternative is to use the Membership APIs, such as Membership.CreateUser. For more information, see http://go.microsoft.com/fwlink/?LinkId=252463.")]
public static string HashPasswordForStoringInConfigFile(string password, string passwordFormat);
static member HashPasswordForStoringInConfigFile : string * string -> string
[<System.Obsolete("The recommended alternative is to use the Membership APIs, such as Membership.CreateUser. For more information, see http://go.microsoft.com/fwlink/?LinkId=252463.")>]
static member HashPasswordForStoringInConfigFile : string * string -> string
Public Shared Function HashPasswordForStoringInConfigFile (password As String, passwordFormat As String) As String

Parameters

password
String

Het wachtwoord voor hash.

passwordFormat
String

Het hash-algoritme dat moet worden gebruikt. passwordFormat is een String waarde die een van de FormsAuthPasswordFormat opsommingswaarden vertegenwoordigt.

Retouren

Het gehashte wachtwoord.

Kenmerken

Uitzonderingen

password Is null

– of –

passwordFormat is null.

passwordFormat is geen geldige FormsAuthPasswordFormat waarde.

Opmerkingen

Deze methode is verouderd. U kunt ook ASP.NET lidmaatschap gebruiken om gebruikersreferenties op te slaan. Zie Gebruikers beheren met lidmaatschap voor meer informatie.

Van toepassing op