QcPlayerKey Namespace
The random key of one installation (decision E-252): 32 bytes, made on first use and kept as hex in <data>/player.key, readable only by the user. More...
| Header: | #include <common/auth/QcPlayerKey.h> |
Variables
| const char[11] | fileName |
Functions
| QString | defaultPath() |
| QcResult<QByteArray> | loadOrCreate(const QString &path) |
Detailed Description
Servers never see it, only an identity derived from it per server (QcLoginCrypto::identity). Whoever copies the file is the player.
Variable Documentation
const char[11] QcPlayerKey::fileName
The key file's name in the data root.
Function Documentation
QString QcPlayerKey::defaultPath()
Returns <data root>/player.key (QcDataRoot).
QcResult<QByteArray> QcPlayerKey::loadOrCreate(const QString &path)
Returns the key read from path; when the file does not exist, makes a new key and writes it. A damaged file is an error (it is not replaced: the identity on every server hangs on it).