Click or drag to resize

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 = 
)

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: String
The encrypted password.
See Also