Encode the plain password (Asp.net password encode mechanism).
Namespace: MonoSoftware.WebAssembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)
Syntax
C# |
---|
public static string EncodePassword(
this MembershipProvider provider,
MembershipPasswordFormat passwordFormat,
string password,
string base64Salt
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function EncodePassword (
provider As MembershipProvider,
passwordFormat As MembershipPasswordFormat,
password As String,
base64Salt As String
) As String |
Visual C++ |
---|
public:
[ExtensionAttribute]
static String^ EncodePassword(
MembershipProvider^ provider,
MembershipPasswordFormat passwordFormat,
String^ password,
String^ base64Salt
) |
F# |
---|
static member EncodePassword :
provider : MembershipProvider *
passwordFormat : MembershipPasswordFormat *
password : string *
base64Salt : string -> string
|
Return Value
Type:
StringEncoded password
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
MembershipProvider. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also