milkpasswd

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

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

Go to latest
Published: Jan 31, 2015 License: MIT Imports: 14 Imported by: 0

README

milkpasswd

Build Status GoDoc

milkpasswd is a tool I wrote to learn Go.

If you really want a password manager, you should use one of the follwoing:

Installation

$ go get github.com/milk/milkpasswd

Usage

$GOPATH/bin/milkpasswd --help

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key []byte, ciphertext []byte, encrypted []byte) (str string, err error)

func DeleteEntry

func DeleteEntry(fullPath string) (err error)

func Encrypt

func Encrypt(key []byte, ciphertext []byte, str []byte) (encrypted []byte, err error)

func ListEntries

func ListEntries() (entries map[string]*Entry, err error)

func Md5sum

func Md5sum(data []byte) []byte

func SearchEntries

func SearchEntries(prefix string) (entries map[string]*Entry, err error)

func Sha256sum

func Sha256sum(data []byte) []byte

Types

type Entry

type Entry struct {
	Path        string
	Name        string
	Username    string
	Password    []byte
	Website     string
	Description string
	// contains filtered or unexported fields
}

func CreateEntry

func CreateEntry(path, name, username string, password []byte, website, description string) (*Entry, error)

func GetEntry

func GetEntry(fullPath string) (entry *Entry, err error)

func (*Entry) Bytes

func (e *Entry) Bytes() []byte

func (*Entry) FullPath

func (e *Entry) FullPath() string

func (*Entry) Save

func (e *Entry) Save() (err error)

func (*Entry) SetName

func (e *Entry) SetName(value string)

func (*Entry) SetPath

func (e *Entry) SetPath(value string)

func (*Entry) String

func (e *Entry) String() string

Directories

Path Synopsis
commands
milkpasswd
milkpasswd is a password manager written in Go
milkpasswd is a password manager written in Go

Jump to

Keyboard shortcuts

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