password

package
v0.0.0-...-7dcfe9a Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(u model.AuthUser, plaintext string) (success bool)

func Generate

func Generate(u model.AuthUser, plaintext string) (p string, err error)

func RefreshPasswordKey

func RefreshPasswordKey()

Types

type PlaintextKey

type PlaintextKey struct {
	Pri    string
	Pub    string
	OldPri string
	OldPub string
}

func GetPasswordKey

func GetPasswordKey() (cert PlaintextKey, err error)

Jump to

Keyboard shortcuts

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