SrpUserCredentialsAddUser(String, String, SrpStrength, Int32, Int32) Method

Adds the specified user to the credentials database.

Definition

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

Parameters

username  String
The user's chosen name to add to the database.
password  String
The user's chosen password to add to the database.
strength  SrpStrength  (Optional)
The strength rating of the password.
saltSize  Int32  (Optional)
The size of salt to be used for password hashing (default is 32).
iterations  Int32  (Optional)
How many iterations used for password hashing (default is 4000).

See Also