key

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidVersion      = fmt.Errorf("invalid version, must be 3 or 4")
	ErrUnsupportedPlatform = fmt.Errorf("unsupported platform")
)

错误定义

Functions

This section is empty.

Types

type Extractor

type Extractor interface {
	// Extract 从进程中提取密钥
	Extract(ctx context.Context, proc *model.Process) (string, error)

	SetValidate(validator *decrypt.Validator)
}

Extractor 定义密钥提取器接口

func NewExtractor

func NewExtractor(platform string, version int) (Extractor, error)

NewExtractor 创建适合当前平台的密钥提取器

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL