MembershipProvider.EncryptPassword Method
.NET Framework 3.0
Encrypts a password.
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
'Declaration Protected Overridable Function EncryptPassword ( _ password As Byte() _ ) As Byte() 'Usage Dim password As Byte() Dim returnValue As Byte() returnValue = Me.EncryptPassword(password)
protected byte[] EncryptPassword ( byte[] password )
protected function EncryptPassword ( password : byte[] ) : byte[]
Not applicable.
Parameters
- password
A byte array that contains the password to encrypt.
Return Value
A byte array that contains the encrypted password.| Exception type | Condition |
|---|---|
|
The ValidationKey property or DecryptionKey property is set to AutoGenerate. |
For an example of a MembershipProvider implementation, see Implementing a Profile Provider.
Community Additions
ADD
Show: