24#ifndef NAWA_ARGON2HASHINGENGINE_H
25#define NAWA_ARGON2HASHINGENGINE_H
58 uint32_t memoryCost = (1 << 16), uint32_t parallelism = 1, std::string salt =
"",
70 [[nodiscard]] std::string
generateHash(std::string input)
const override;
81 [[nodiscard]]
bool verifyHash(std::string input, std::string hash)
const override;
Abstract base class for hashing engines.
std::string generateHash(std::string input) const override
Argon2HashingEngine(Algorithm algorithm=Algorithm::ARGON2ID, uint32_t timeCost=2, uint32_t memoryCost=(1<< 16), uint32_t parallelism=1, std::string salt="", size_t hashLen=32)
bool verifyHash(std::string input, std::string hash) const override
Macros for frequently used patterns.
#define NAWA_DEFAULT_DESTRUCTOR_DEF(Class)
#define NAWA_PRIVATE_DATA()