keepass2kms

package
v2.0.33 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEntry

func GetEntry(grp *keepass.RootData, name string, create bool) *keepass.Entry

func LoadKeePassDBFromFile

func LoadKeePassDBFromFile(file, credentials string) (*keepass.Database, error)

func NewClient

func NewClient(db *keepass.Database, name string) (registry.KMSClient, error)

func NewClientWithCredentials

func NewClientWithCredentials(kdbx string, name string, credentials string) (registry.KMSClient, error)

NewClientWithCredentials returns a new Keepass 2 client. uriPrefix must have the following format: 'keepass2://[:path]'. keyPath is the path inside the kdbx file to the key. kdbxPassword is the password to the kdbx file. credentials is the password to be stored in the key.

Types

type Keepass2

type Keepass2 struct {
	// contains filtered or unexported fields
}

func NewKeepass2

func NewKeepass2(filename string, credentials string, backupExtension string) (*Keepass2, error)

func (*Keepass2) Close

func (k *Keepass2) Close() error

func (*Keepass2) GetEntry

func (k *Keepass2) GetEntry(key string) (*gokeepasslib.Entry, error)

func (*Keepass2) NewEntry

func (k *Keepass2) NewEntry(key string, data []byte, associatedData []byte, nonce []byte) error

func (*Keepass2) Open

func (k *Keepass2) Open(credentials string) error

Jump to

Keyboard shortcuts

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