keychain

package
v0.0.0-...-c18536e Latest Latest
Warning

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

Go to latest
Published: May 14, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package keychain loads the device keychain from an encrypted backup.

Index

Constants

View Source
const (
	KService = "svce"
	KData    = "v_Data"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Keychain

type Keychain struct {
	General  KeychainGroup
	Internet KeychainGroup
	Certs    KeychainGroup
	Keys     KeychainGroup
}

Keychain holds a decrypted keychain

func Load

func Load(db *backup.MobileBackup) (*Keychain, error)

Load decrypts the keychain from an encrypted backup.

type KeychainGroup

type KeychainGroup []interface{}

KeychainGroup holds a group of keychain items

func (KeychainGroup) FindByKeyMatch

func (kg KeychainGroup) FindByKeyMatch(key, value string) (items []KeychainItem)

FindByKeyMatch queries for matching entries in a group.

eg. FindByKeyMatch(keychain.KService, "ParentalControls")

type KeychainItem

type KeychainItem map[string]interface{}

KeychainItem represents a single keychain entry.

Jump to

Keyboard shortcuts

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