DatabaseAuthenticationProviderEncryptPassword Method |
Encrypt the specified password using the specified encryption algorithm, or, if one is not specified,
using the application's encryption method.
Namespace:
NetQuarry.Security
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string EncryptPassword(
IAppContext cxt,
string userID,
string password,
EncryptionAlgorithm algorithm =
)
Public Shared Function EncryptPassword (
cxt As IAppContext,
userID As String,
password As String,
Optional algorithm As EncryptionAlgorithm =
) As String
Parameters
- cxt
- Type: NetQuarryIAppContext
The application context. - userID
- Type: SystemString
The user ID (used by some algorighms). - password
- Type: SystemString
The password to encrypt. - algorithm (Optional)
- Type: NetQuarry.SecurityEncryptionAlgorithm
The algorithm to use, if specified, else the application's encryption algorithm.
Return Value
Type:
StringThe encrypted password.
See Also