SrpUserCredentialsAddUser(String, String, SrpStrength, Int32, Int32) Method
Adds the specified user to the credentials database.
Namespace: SnapDB.Security.AuthenticationAssembly: 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
)
Public Sub AddUser (
username As String,
password As String,
Optional strength As SrpStrength = SrpStrength.Bits1024,
Optional saltSize As Integer = 32,
Optional iterations As Integer = 4000
)
public:
void AddUser(
String^ username,
String^ password,
SrpStrength strength = SrpStrength::Bits1024,
int saltSize = 32,
int iterations = 4000
)
function AddUser(username, password, strength, saltSize, iterations);
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).