메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
Dispose ( bool disposing ) : void |
메소드 | 설명 | |
---|---|---|
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 ( |
public static EncryptPassword ( string password, string salt ) : string | ||
password | string | |
salt | string | |
리턴 | string |