Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoDetectDBRoot ¶
func DefaultWeChatBase ¶
func DefaultWeChatBases ¶
Types ¶
type Config ¶
type Config struct {
SchemaVersion int `json:"schema_version,omitempty"`
Wxid string `json:"wxid"`
DBRoot string `json:"db_root"`
Keys map[string]string `json:"keys,omitempty"`
ImageKey string `json:"image_key,omitempty"`
ImageXORKey *int `json:"image_xor_key,omitempty"`
Key string `json:"key,omitempty"`
KeyPID int `json:"key_pid,omitempty"`
KeyEpoch int64 `json:"key_epoch,omitempty"`
}
Config is wechat-cli's persistent key map. By default it intentionally stays at ~/.config/wxcli/config.json for wxkey / wx-cli compatibility; WECHAT_CLI_CONFIG or the legacy WX_MCP_CONFIG can point at an explicit file.
Schema 2 carries a per-DB enc_key map: each WCDB file's SQLCipher salt maps to its 32-byte post-PBKDF2 encryption key. This is the only ready runtime state. Schema 1's legacy master password is intentionally ignored.
Click to show internal directories.
Click to hide internal directories.