Documentation ¶
Index ¶
Constants ¶
View Source
const ( ChromePasswordFile = "Login Data" FirefoxKey4File = "key4.db" FirefoxLoginFile = "logins.json" )
Variables ¶
This section is empty.
Functions ¶
func ListBrowser ¶
func ListBrowser() []string
Types ¶
type Browser ¶
type Browser interface { // InitSecretKey is init chrome secret key, firefox's key always empty InitSecretKey() error // GetName return browser name GetName() string // GetSecretKey return browser secret key GetSecretKey() []byte // GetItem return password GetItem() (Item, error) }
func NewChromium ¶
NewChromium return Chromium browser interface
func NewFirefox ¶
NewFirefox return firefox browser interface
func PickBrowser ¶
func PickBrowser() (browsers []Browser)
PickBrowser return a list of browser interface
func PickCustomBrowser ¶
PickCustomBrowser pick single browser with custom browser profile path and key file path (windows only). If custom key file path is empty, but the current browser requires key file (chromium for windows version > 80) key file path will be automatically found in the profile path's parent directory.
type Chromium ¶
type Chromium struct {
// contains filtered or unexported fields
}
func (*Chromium) GetSecretKey ¶
func (*Chromium) InitSecretKey ¶
type Firefox ¶
type Firefox struct {
// contains filtered or unexported fields
}
func (*Firefox) GetSecretKey ¶
GetSecretKey for firefox is always nil this method used to implement Browser interface
func (*Firefox) InitSecretKey ¶
InitSecretKey for firefox is always nil this method used to implement Browser interface
type Item ¶
type Item interface { // ChromeParse parse chrome items, Password need secret key ChromeParse(key []byte) error // FirefoxParse parse firefox items FirefoxParse() error // OutPut file name and format type OutPut(browser string, res map[string][]interface{}) error // CopyDB is copy item db file to current dir CopyDB() error // Release is delete item db file Release() error }
func NewCPasswords ¶
func NewFPasswords ¶
Click to show internal directories.
Click to hide internal directories.