password

package
v1.3.167 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPassword added in v0.8.80

type IPassword interface {
	VerifyPassword(password string, hash string) bool
	HashPassword(password string) (string, error)
}

func NewSimpleManager added in v1.2.80

func NewSimpleManager(_ config.IConfig) IPassword

type NewPasswordManagerFunc added in v1.2.80

type NewPasswordManagerFunc func(configService config.IConfig) IPassword

type SimpleManager added in v1.2.80

type SimpleManager struct {
}

func (*SimpleManager) HashPassword added in v1.2.80

func (p *SimpleManager) HashPassword(password string) (string, error)

func (*SimpleManager) VerifyPassword added in v1.2.80

func (p *SimpleManager) VerifyPassword(password string, hash string) bool

Jump to

Keyboard shortcuts

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