decrypt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PageSize     = 4096
	SaltSize     = 16
	IVSize       = 16
	HmacSize     = 64
	IterCount    = 256000
	KeySize      = 32
	ReserveSize  = IVSize + HmacSize // 16 + 64 = 80 bytes
	AESBlockSize = 16
	SQLiteHeader = "SQLite format 3\x00"
)

Variables

This section is empty.

Functions

func DecodeHexKey

func DecodeHexKey(keyStr string) ([]byte, error)

func DecryptDB

func DecryptDB(srcPath, dstPath string, key []byte) error

DecryptDB decrypts a single database file

func EnsureDir

func EnsureDir(path string) error

func GetFileSize

func GetFileSize(path string) (int64, error)

func IsSQLiteHeader

func IsSQLiteHeader(buf []byte) bool

func RunTask

func RunTask(srcDir, keyStr string) (int, string, error)

RunTask executes the decryption process with provided parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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