Class SimplePasswordHasher

Assembly: redb.Core.dll

Password hasher implementation using SHA256 + salt.
Implements IPasswordHasher interface for DI.
FUTURE: Replace with BCrypt for better security.

public class SimplePasswordHasher : IPasswordHasher

Inheritance

ObjectSimplePasswordHasher

Implements

Methods

HashPassword(string)

Hash password with salt.

public string HashPassword(string password)

VerifyPassword(string, string)

Verify password against stored hash.

public bool VerifyPassword(string password, string hashedPassword)