Documentation
¶
Index ¶
- Constants
- type V3Decryptor
- func (d *V3Decryptor) Decrypt(ctx context.Context, dbfile string, hexKey string, output io.Writer) error
- func (d *V3Decryptor) GetHMACSize() int
- func (d *V3Decryptor) GetPageSize() int
- func (d *V3Decryptor) GetReserve() int
- func (d *V3Decryptor) GetVersion() string
- func (d *V3Decryptor) Validate(page1 []byte, key []byte) bool
- type V4Decryptor
- func (d *V4Decryptor) Decrypt(ctx context.Context, dbfile string, hexKey string, output io.Writer) error
- func (d *V4Decryptor) GetHMACSize() int
- 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 ( V3PageSize = 1024 HmacSHA1Size = 20 )
常量定义
View Source
const ( V4PageSize = 4096 V4IterCount = 256000 HmacSHA512Size = 64 )
V4 版本特定常量
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type V3Decryptor ¶
type V3Decryptor struct {
// contains filtered or unexported fields
}
V3Decryptor 实现 macOS V3 版本的解密器
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) GetIterCount ¶
func (d *V4Decryptor) GetIterCount() int
GetIterCount 返回迭代次数(Windows特有)
Click to show internal directories.
Click to hide internal directories.