Encode the plain password (Asp.net password encode mechanism).

Namespace: MonoSoftware.Web
Assembly: 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 

Parameters

provider
Type: System.Web.Security..::..MembershipProvider
Membership provider
passwordFormat
Type: System.Web.Security..::..MembershipPasswordFormat
Password format.
password
Type: System..::..String
Plain password
base64Salt
Type: System..::..String
Base 64 salt

Return Value

Type: String
Encoded 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