13 lines
337 B
C++
13 lines
337 B
C++
#ifndef HASH_HPP
|
|
#define HASH_HPP
|
|
|
|
#include <string>
|
|
#include <string_view>
|
|
|
|
auto generate_hash(const std::string_view password, std::size_t rounds) -> std::string;
|
|
|
|
auto validate_password(const std::string_view password, const std::string_view hash) -> bool;
|
|
|
|
auto random_password(std::size_t length) -> std::string;
|
|
|
|
#endif // HASH_HPP
|