passwordstore

passwordstore
Login

Go library for password store (pass)

Usage

import "foutaise.org/fossil/passwordstore"

Get a password

// func Get(entry string) (string, error)
pass, err := passwordstore.Get("foutaise.org")

Insert a password

// func Insert(entry, passwd string) error
err := passwordstore.Insert("test", "mypasswd")

Generate a password

// func Generate(entry string, length int) (string, error)
pass, err := passwordstore.Generate("test", 10)

Delete an entry

// func Delete(entry string) error
err := passwordstore.Delete("test")

Move an entry

// Move(entry, newentry string) error
err := passwordstore.Move("test", "test2")

Copy an entry

// func Copy(entry, newentry string) error
err := passwordstore.Copy("test", "test2")

Copy a password to clipboard

// func CopyToClipboard(entry string) error
err := passwordstore.CopyToClipboard("foutaise.org")