VistaDB 6
VistaDB.Web Namespace / VistaDBMembershipProvider Class / DecryptPassword Method
A byte array that contains the encrypted password to decrypt.


In This Topic
    DecryptPassword Method
    In This Topic
    Decrypts an encrypted password.
    Syntax
    'Declaration
     
    
    Protected Function DecryptPassword( _
       ByVal encodedPassword() As System.Byte _
    ) As System.Byte()
    'Usage
     
    
    Dim instance As VistaDBMembershipProvider
    Dim encodedPassword() As System.Byte
    Dim value() As System.Byte
     
    value = instance.DecryptPassword(encodedPassword)
    protected System.byte[] DecryptPassword( 
       System.byte[] encodedPassword
    )

    Parameters

    encodedPassword
    A byte array that contains the encrypted password to decrypt.

    Return Value

    A byte array that contains the decrypted password.
    Exceptions
    ExceptionDescription
    The System.Web.Configuration.MachineKeySection.ValidationKey property or System.Web.Configuration.MachineKeySection.DecryptionKey property is set to AutoGenerate.
    This method is not available. This can occur if the application targets the .NET Framework 4 Client Profile. To prevent this exception, override the method, or change the application to target the full version of the .NET Framework.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also