internal

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(text, password []byte) ([]byte, error)

func Encrypt

func Encrypt(plaintext, password []byte) ([]byte, error)

Types

type Entry

type Entry struct {
	Algorithm string   `json:"algorithm"`
	Digits    uint8    `json:"digits"`
	Issuer    string   `json:"issuer"`
	Label     string   `json:"label"`
	Period    uint32   `json:"period"`
	Secret    string   `json:"secret"`
	Tags      []string `json:"tags"`
	Thumbnail string   `json:"thumbnail"`
	Type      string   `json:"type"`
}

func DecryptAsEntries

func DecryptAsEntries(text, password []byte) ([]Entry, error)

type UI

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

func NewUI

func NewUI(entries []Entry) UI

func (UI) Init

func (ui UI) Init() tea.Cmd

func (UI) Update

func (ui UI) Update(teaMsg tea.Msg) (tea.Model, tea.Cmd)

func (UI) View

func (ui UI) View() string

Jump to

Keyboard shortcuts

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