utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Apu specific
	PwdLen int = 16

	// Argon2
	SaltLen int    = 16
	Time    uint32 = 1
	Memory  uint32 = 65536
	Threads uint8  = 4
	KeyLen  uint32 = 32

	// AES-GCM
	NonceLen int = 12
)

Variables

This section is empty.

Functions

func GetConnStr

func GetConnStr(mPwd string) string

func ReadPwd

func ReadPwd(prompt string) []byte

func ReadSalt

func ReadSalt(db *sql.DB) sql.RawBytes

func ReadSite

func ReadSite() string

Types

type VaultEntry

type VaultEntry struct {
	Site     string
	Username sql.NullString
	Pwd      []byte
	Nonce    []byte
}

Jump to

Keyboard shortcuts

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