完成框架目录和模块重构;新增核心、单例、工具、加密及框架 SDK;统一任务、相机和 RPC 接口,并增加离线检测、相机标定、备份恢复、版本管理、崩溃守护和心跳监控功能。
20 lines
591 B
C++
20 lines
591 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
namespace crypto {
|
|
|
|
inline constexpr int kRootTotpMinUserId = 1;
|
|
inline constexpr int kRootTotpMaxUserId = 2000;
|
|
|
|
inline constexpr int rootTotpMaxUserId() { return kRootTotpMaxUserId; }
|
|
bool verifyRootPassword(const std::string& password);
|
|
const std::string& halconPassword();
|
|
const std::string& euiJsonPassword();
|
|
// 用户密码哈希用的盐值,集中存放于 eui_crypto,避免散落在 GUI 源码里。
|
|
const std::string& passwordHashSalt();
|
|
bool verifyRootTotp(int userId, const std::string& code, std::int64_t unixSeconds);
|
|
|
|
}
|