multipass

package module
v0.0.0-...-ba6280d Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2015 License: MIT Imports: 11 Imported by: 0

README

Unofficial implementation of the 1Password agile keychain data format. Access is read-only at the moment.

You might also want to check out my Chrome extension

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	Title       string
	Payload     string
	TypeName    string
	LocationKey string
	Location    string
}

func DecryptFile

func DecryptFile(file []byte, keyMap map[string][]byte) (Item, error)

type ItemCallback

type ItemCallback func(path string, file []byte) error

type KeyChain

type KeyChain interface {
	Open(password []byte) error
	IsOpen() bool
	Close()
	ForEachItem(callback ItemCallback) error
	Keys() map[string][]byte
}

func NewAgileKeyChain

func NewAgileKeyChain(dir string) KeyChain

type Keys

type Keys struct {
	List []PassKey
}

type PassKey

type PassKey struct {
	// Base64 encoded encryption key, AES-128 encrypted using a PBKDF2 key
	// derived from the user's password
	Data       string
	Identifier string
	Iterations int
	Level      string
	// Base64 encoded copy of the encryption key, AES-128 encrypted by itself
	Validation string
}

Jump to

Keyboard shortcuts

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