NookPost-Backend
Loading...
Searching...
No Matches
NookpostBackend.Cryptography.PasswordHashing Class Reference

Holds methods for hashing passwords, and checking the hashed passwords. More...

Collaboration diagram for NookpostBackend.Cryptography.PasswordHashing:

Static Public Member Functions

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.
 

Detailed Description

Holds methods for hashing passwords, and checking the hashed passwords.

Member Function Documentation

◆ 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.

Here is the caller graph for this function:

◆ isPasswordValid()

static bool NookpostBackend.Cryptography.PasswordHashing.isPasswordValid ( string password,
Models.User user )
inlinestatic

Validate a password for a user.

Parameters
passwordThe password to validate.
userThe user to validate the password for.
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: