internal

package
v0.0.0-...-b3267af Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAlgorithm = "sha1"
View Source
const DefaultDigits = 6
View Source
const DefaultPeriod = 30

Variables

This section is empty.

Functions

func Add

func Add(json *Json) error

func Delete

func Delete(idx int) error

func Print

func Print() error

Types

type Json

type Json struct {
	Issuer     string `json:"issuer"`
	Identifier string `json:"identifier"`
	Algorithm  string `json:"algorithm"`
	Digits     int    `json:"digits"`
	Period     int64  `json:"period"`
	Secret     string `json:"secret"`
}

type Result

type Result struct {
	Issuer     string
	Identifier string
	Totp       string
	Remaining  int64
}

Jump to

Keyboard shortcuts

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