|
R-Type
Distributed multiplayer game engine in C++
|
Abstract interface for password hashing algorithms. More...
#include <IPasswordHasher.hpp>


Public Member Functions | |
| virtual | ~IPasswordHasher ()=default |
| virtual std::string | hash (const std::string &password)=0 |
| Hash a plaintext password. | |
| virtual bool | verify (const std::string &password, const std::string &hash)=0 |
| Verify a password against a hash. | |
Abstract interface for password hashing algorithms.
This interface provides a uniform API for different password hashing implementations (Argon2, bcrypt, scrypt, etc.)
Definition at line 19 of file IPasswordHasher.hpp.
|
virtualdefault |
|
pure virtual |
Hash a plaintext password.
| password | The plaintext password to hash |
| std::runtime_error | if hashing fails |
Implemented in Argon2PasswordHasher.
|
pure virtual |
Verify a password against a hash.
| password | The plaintext password to verify |
| hash | The hash to verify against |
Implemented in Argon2PasswordHasher.