Used for data hashing and "nonce" generating.
More...
#include <userver/server/handlers/auth/digest/auth_checker_base.hpp>
|
| Hasher (std::string_view algorithm) |
|
std::string | GenerateNonce (std::string_view etag) const |
| Returns "nonce" directive value in hexadecimal format.
|
|
std::string | GetHash (std::string_view data) const |
|
Used for data hashing and "nonce" generating.
Definition at line 30 of file auth_checker_base.hpp.
◆ Hasher()
server::handlers::auth::digest::Hasher::Hasher |
( |
std::string_view |
algorithm | ) |
|
Constructor from the hash algorithm name from "crypto" namespace. Subsequently, all methods of the class will use this algorithm for hashing.
◆ GetHash()
std::string server::handlers::auth::digest::Hasher::GetHash |
( |
std::string_view |
data | ) |
const |
Returns data hashed according to the specified in constructor algorithm.
The documentation for this class was generated from the following file: