Holds methods for hashing passwords, and checking the hashed passwords.
More...
|
static string | HashPassword (string password, string salt) |
| Hash a password with the given salt and password. The Pepper will automatically be obtained from settings.
|
|
static bool | isPasswordValid (string password, Models.User user) |
| Validate a password for a user.
|
|
Holds methods for hashing passwords, and checking the hashed passwords.
◆ HashPassword()
static string NookpostBackend.Cryptography.PasswordHashing.HashPassword |
( |
string | password, |
|
|
string | salt ) |
|
inlinestatic |
Hash a password with the given salt and password. The Pepper will automatically be obtained from settings.
◆ isPasswordValid()
static bool NookpostBackend.Cryptography.PasswordHashing.isPasswordValid |
( |
string | password, |
|
|
Models.User | user ) |
|
inlinestatic |
Validate a password for a user.
- Parameters
-
password | The password to validate. |
user | The user to validate the password for. |
The documentation for this class was generated from the following file: