Documentation
¶
Index ¶
- Constants
- type V4Decryptor
- func (d *V4Decryptor) Decrypt(ctx context.Context, dbfile string, hexKey string, output io.Writer) error
- func (d *V4Decryptor) DeriveKeys(key []byte, salt []byte) ([]byte, []byte, error)
- func (d *V4Decryptor) GetHMACSize() int
- func (d *V4Decryptor) GetHashFunc() func() hash.Hash
- func (d *V4Decryptor) GetIterCount() int
- func (d *V4Decryptor) GetPageSize() int
- func (d *V4Decryptor) GetReserve() int
- func (d *V4Decryptor) GetVersion() string
- func (d *V4Decryptor) Validate(page1 []byte, key []byte) bool
Constants ¶
View Source
const ( V4IterCount = 256000 HmacSHA512Size = 64 // WeChat 数据库默认页大小(SQLite page size) // 之前由 V3 实现文件共享定义;移除 V3 支持后在此处显式保留。 PageSize = 4096 )
V4 版本特定常量
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type V4Decryptor ¶
type V4Decryptor struct {
// contains filtered or unexported fields
}
V4Decryptor 实现Windows V4版本的解密器
func (*V4Decryptor) Decrypt ¶
func (d *V4Decryptor) Decrypt(ctx context.Context, dbfile string, hexKey string, output io.Writer) error
Decrypt 解密数据库
func (*V4Decryptor) DeriveKeys ¶
func (*V4Decryptor) GetHashFunc ¶
func (d *V4Decryptor) GetHashFunc() func() hash.Hash
func (*V4Decryptor) GetIterCount ¶
func (d *V4Decryptor) GetIterCount() int
GetIterCount 返回迭代次数(Windows特有)
Click to show internal directories.
Click to hide internal directories.