Boost C++ Libraries

PrevUpHomeNext

Struct template default_key_generator

boost::taar::default_key_generator — Default key generator used by context_store::create().

Synopsis

// In header: <boost/taar/core/context_store.hpp>

template<typename Key> 
struct default_key_generator {
};

Description

Specialised for std::string: 128 random bits from std::random_device rendered as 32 lowercase hexadecimal characters, which is safe in both cookies and headers. Provide your own callable to the store constructor for other key types or other formats.


PrevUpHomeNext