csvpass

package
v0.0.0-...-9e74ca5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2025 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Credentials map[Username]Challenge
}

Auth holds user credentials

func Load

func Load(f *os.File) (*Auth, error)

Load reads credentials from the given path

func (Auth) Verify

func (a Auth) Verify(username, password string) bool

Verify checks Basic Auth credentials

type Challenge

type Challenge struct {
	Plain  string
	Params []string
	Salt   []byte
	Digest []byte
}

Challenge represents a row in the CSV file

func (Challenge) ToRecord

func (c Challenge) ToRecord(id string) []string

type Username

type Username = string

Jump to

Keyboard shortcuts

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