ScramUserCredentialsAddUser Method
Adds a new user credential with the specified username and password.
Namespace: SnapDB.Security.AuthenticationAssembly: 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
)
Public Sub AddUser (
username As String,
password As String,
Optional iterations As Integer = 4000,
Optional saltSize As Integer = 32,
Optional hashMethod As HashMethod = HashMethod.Sha256
)
public:
void AddUser(
String^ username,
String^ password,
int iterations = 4000,
int saltSize = 32,
HashMethod hashMethod = HashMethod::Sha256
)
function AddUser(username, password, iterations, saltSize, hashMethod);
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).