nanoMMO 0.97.8
Building an MMO: The Engineering Series
Loading...
Searching...
No Matches
password.h
Go to the documentation of this file.
1#ifndef NANOMMO_SERVER_PASSWORD_H_
2#define NANOMMO_SERVER_PASSWORD_H_
3
4#include <string>
5#include <string_view>
6
7#include "absl/status/statusor.h"
8
9namespace nanommo {
10
11absl::StatusOr<std::string> HashPassword(std::string_view password);
12
13bool VerifyPassword(const std::string& hash, std::string_view password);
14
15} // namespace nanommo
16
17#endif // NANOMMO_SERVER_PASSWORD_H_
Definition chat.cc:9
absl::StatusOr< std::string > HashPassword(std::string_view password)
Definition password.cc:22
bool VerifyPassword(const std::string &hash, std::string_view password)
Definition password.cc:36