zauth

package
v0.0.0-...-aa4767a Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAlgo = "sha1"
View Source
const DefaultCounter = 0
View Source
const DefaultDigits = 6
View Source
const DefaultPeriod = 30
View Source
const DefaultType = "totp"

Variables

View Source
var ZAuthJson string = filepath.Join(ZAuthJsonDir, "zauth.json")
View Source
var ZAuthJsonDir string = filepath.Join(homeDir(), ".zauth")

Functions

This section is empty.

Types

type ZAuth

type ZAuth struct {
	Secret    string                 `json:"secret"`
	Label     string                 `json:"label"`
	Issuer    string                 `json:"issuer"`
	Digits    int                    `json:"digits"`
	Algorithm string                 `json:"algorithm"`
	Counter   int64                  `json:"counter"`
	Period    int64                  `json:"period"`
	Type      string                 `json:"type"`
	Misc      map[string]interface{} `json:"misc"` // to store all other nodes (that are not part of ZAuth at time of import)
}

type ZAuthOtp

type ZAuthOtp struct {
	Otp       string
	Remaining int64
}

Jump to

Keyboard shortcuts

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