types

package
v0.0.0-...-9220204 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnsupportedItem = "unsupported item"
)

item's default filename

Variables

DefaultChromiumTypes returns the default items for the chromium browser

DefaultFirefoxTypes returns the default items for the firefox browser

DefaultYandexTypes returns the default items for the yandex browser

Functions

This section is empty.

Types

type DataType

type DataType int
const (
	ChromiumKey DataType = iota
	ChromiumPassword
	ChromiumCookie
	ChromiumBookmark
	ChromiumHistory
	ChromiumDownload
	ChromiumCreditCard
	ChromiumLocalStorage
	ChromiumSessionStorage
	ChromiumExtension

	YandexPassword
	YandexCreditCard

	FirefoxKey4
	FirefoxPassword
	FirefoxCookie
	FirefoxBookmark
	FirefoxHistory
	FirefoxDownload
	FirefoxCreditCard
	FirefoxLocalStorage
	FirefoxSessionStorage
	FirefoxExtension
)

func FilterSensitiveItems

func FilterSensitiveItems(items []DataType) []DataType

FilterSensitiveItems returns the sensitive items

func (DataType) Filename

func (i DataType) Filename() string

Filename returns the filename for the item, defined by browser chromium local storage is a folder, so it returns the file name of the folder

func (DataType) IsSensitive

func (i DataType) IsSensitive() bool

IsSensitive returns whether the item is sensitive data password, cookie, credit card, master key is unlimited

func (DataType) TempFilename

func (i DataType) TempFilename() string

TempFilename returns the temp filename for the item with suffix eg: chromiumKey_0.temp

Jump to

Keyboard shortcuts

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