Méthode | Description | |
---|---|---|
CreateSalt ( ) : string |
Creates a random salt to be used for encrypting a password
|
|
EncryptPassword ( string password, string salt ) : string |
Encrypts a password using the given salt
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Méthode | Description | |
---|---|---|
CreateToken ( User user, object &dbUser ) : string |
Create a Jwt with user information
|
|
CreateUser ( |
Create a new user and saves it to the database
|
|
Login ( |
||
Register ( |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | |
Résultat | void |
public static EncryptPassword ( string password, string salt ) : string | ||
password | string | |
salt | string | |
Résultat | string |