mpexporter

package module
v0.0.0-...-89eb238 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2019 License: MIT Imports: 2 Imported by: 0

README

MPExporter GoDoc Version

MPExporter exports your Macpass/Keepass compatible XML export file to CSV. This is particularly useful for password managers such as 1Password or LastPass that can import your data from CSV. Only 1Password is supported at the moment.

Installation

go get github.com/jtsiros/mpexporter

Build

go build cmd/mpexporter/mpexporter.go

Usage

./mpexporter --export 1password --i macpass.xml --o sample.csv

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Title    string
	Username string
	Password string
	URL      string
	Notes    string
}

An Entry represents an XML Entry element in the Keepass DB.

func ReadKeepassXML

func ReadKeepassXML(r io.Reader) ([]Entry, error)

ReadKeepassXML reads all Entry elements from the Keepass DB XML file. returns a list of Entry objects or error

type Exporter

type Exporter interface {
	ToSlice(e *Entry) []string
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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