FormsAuthentication.HashPasswordForStoringInConfigFile(String, String) Metodo

Definizione

Attenzione

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

Produce una password hash adatta per l'archiviazione in un file di configurazione in base alla password e all'algoritmo hash specificati.

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

Parametri

password
String

Password da hashre.

passwordFormat
String

Algoritmo hash da usare. passwordFormat è un String oggetto che rappresenta uno dei FormsAuthPasswordFormat valori di enumerazione.

Valori restituiti

Password con hash.

Attributi

Eccezioni

password è null

oppure

passwordFormat è null.

passwordFormat non è un valore valido FormsAuthPasswordFormat .

Commenti

Questo metodo è obsoleto. In alternativa, è possibile usare ASP.NET'appartenenza per archiviare le credenziali utente. Per altre informazioni, vedere Gestione degli utenti tramite l'appartenenza.

Si applica a