SrpUserCredential(String, String, SrpStrength, Int32, Int32) Constructor

Creates a user credential from the provided data.

Definition

Namespace: SnapDB.Security.Authentication
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public SrpUserCredential(
	string username,
	string password,
	SrpStrength strength = SrpStrength.Bits1024,
	int saltSize = 32,
	int iterations = 4000
)

Parameters

username  String
The username for the user credential.
password  String
The password for the user credential.
strength  SrpStrength  (Optional)
The strength of the SRP protocol (default is Bits1024).
saltSize  Int32  (Optional)
The size of the salt in bytes (default is 32 bytes).
iterations  Int32  (Optional)
The number of iterations for password hashing (default is 4000).

See Also