passdata

package
v0.0.0-...-ec858df Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CryptoContainerToJson

func CryptoContainerToJson(cryptoContainer CryptoContainer) ([]byte, error)

func PassEntriesToJson

func PassEntriesToJson(passEntries []PassEntry) ([]byte, error)

Types

type CryptoContainer

type CryptoContainer struct {
	Algorithm     string `json:"algorithm"`
	Nonce         string `json:"nonce"`
	KeySalt       string `json:"keySalt"`
	EncryptedText string `json:"encryptedText"`
}

func CryptoContainerFromJson

func CryptoContainerFromJson(bytes []byte) (CryptoContainer, error)

func (CryptoContainer) ContainsData

func (cryptoContainer CryptoContainer) ContainsData() bool

type PassEntry

type PassEntry struct {
	Name            string          `json:"name"`
	Description     string          `json:"description"`
	Login           string          `json:"login"`
	RecoveryMail    string          `json:"recoveryMail"`
	LastUsage       time.Time       `json:"lastUsage"`
	CryptedPassword CryptoContainer `json:"cryptedPassword"`
	Bucket          string          `json:"bucket"`
}

func PassEntriesFromJson

func PassEntriesFromJson(bytes []byte) ([]PassEntry, error)

func (PassEntry) ContainsData

func (passEntry PassEntry) ContainsData() bool

func (PassEntry) MatchesBucketPrefix

func (passEntry PassEntry) MatchesBucketPrefix(bucketPrefix string) bool

func (PassEntry) MatchesFilter

func (passEntry PassEntry) MatchesFilter(s string) bool

func (PassEntry) Title

func (passEntry PassEntry) Title() string

Jump to

Keyboard shortcuts

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