FormsAuthentication.HashPasswordForStoringInConfigFile(String, String) Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Upozornění
The recommended alternative is to use the Membership APIs, such as Membership.CreateUser. For more information, see http://go.microsoft.com/fwlink/?LinkId=252463.
Vytvoří heslo hash vhodné pro uložení do konfiguračního souboru na základě zadaného hesla a algoritmu hash.
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
Parametry
- password
- String
Heslo k hodnotě hash.
- passwordFormat
- String
Algoritmus hash, který se má použít.
passwordFormat
String představuje jednu z hodnot výčtuFormsAuthPasswordFormat.
Návraty
Heslo s hodnotou hash.
- Atributy
Výjimky
passwordFormat není platná FormsAuthPasswordFormat hodnota.
Poznámky
Tato metoda je zastaralá. Případně můžete k ukládání přihlašovacích údajů uživatele použít ASP.NET členství. Další informace naleznete v tématu Správa uživatelů pomocí členství.