ScramUserCredentialsAddUser Method

Adds a new user credential with the specified username and password.

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,
	int iterations = 4000,
	int saltSize = 32,
	HashMethod hashMethod = HashMethod.Sha256
)

Parameters

username  String
The username of the new user credential.
password  String
The password associated with the new user credential.
iterations  Int32  (Optional)
The number of iterations for key derivation (optional, default is 4000).
saltSize  Int32  (Optional)
The size of the salt in bytes for key derivation (optional, default is 32).
hashMethod  HashMethod  (Optional)
The hash method used for key derivation (optional, default is SHA-256).

See Also