|
Orbit Framework 2.0.0
A high-performance asynchronous C++20 HTTP server framework.
|
Namespaces | |
| namespace | file |
| namespace | log_levels |
Classes | |
| struct | CaseInsensitiveEqual |
| struct | CaseInsensitiveHash |
| class | Logger |
| class | MetricsTimer |
| class | PrometheusRegistry |
Typedefs | |
| using | LogFields = std::vector< std::pair< std::string, std::string > > |
Enumerations | |
| enum class | LogLevel { DEBUG = 0 , INFO = 1 , WARN = 2 , ERROR = 3 } |
| enum class | LogFormat { Text , Json } |
Functions | |
| std::string | secure_random_hex (size_t num_bytes) |
Returns num_bytes of cryptographically secure randomness, hex-encoded. | |
| bool | constant_time_equals (std::string_view a, std::string_view b) |
| Compares two secrets in time independent of where they differ. | |
| using orbit::utils::LogFields = typedef std::vector<std::pair<std::string, std::string> > |
|
strong |
|
strong |
|
inline |
Compares two secrets in time independent of where they differ.
|
inline |
Returns num_bytes of cryptographically secure randomness, hex-encoded.
Use this for anything an attacker must not guess: session identifiers, CSRF tokens, OAuth state values. std::random_device / std::mt19937 are not suitable for these.
| std::runtime_error | if the system CSPRNG fails. |