browser

package
v0.0.0-...-8c47449 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const FirefoxDBFile = "places.sqlite"

Variables

This section is empty.

Functions

func Equal

func Equal(a, b []int) bool

Types

type Algo

type Algo struct {
	AlgoID OID
	Params PKCS5Params
}

type CipherParams

type CipherParams struct {
	Algo OID
	IV   []byte
}

type EncryptedData

type EncryptedData struct {
	EncryptionAlgo Algo
	Encrypted      []byte
}

type HistoryRow

type HistoryRow struct {
	ID         int
	URL        string
	Title      sql.NullString
	VisitCount int
	LastVisit  int64
}

func GetBrowsingHistory

func GetBrowsingHistory(dbPath string, limit int) ([]*HistoryRow, error)

func GetBrowsingHistoryTempDB

func GetBrowsingHistoryTempDB(dbPath string, limit int) ([]*HistoryRow, error)

type KDF

type KDF struct {
	AlgoID OID
	Params PBKDF2Params
}

type Login

type Login struct {
	Username string
	Password string
	URL      string
	// contains filtered or unexported fields
}

func GetPasswords

func GetPasswords(profile ProfilePath) ([]*Login, error)

type OID

type OID = asn1.ObjectIdentifier

type PBKDF2Params

type PBKDF2Params struct {
	Salt           []byte
	IterationCount int
	KeyLength      int `asn1:"optional"`
	PRF            asn1.RawValue
}

type PKCS5Params

type PKCS5Params struct {
	KDF    KDF
	Cipher CipherParams
}

type ProfilePath

type ProfilePath string

func GetProfilePath

func GetProfilePath() (ProfilePath, error)

Jump to

Keyboard shortcuts

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