hash

package
v0.0.0-...-4c0fd1a Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is hash providers.

Functions

This section is empty.

Types

type Hasher

type Hasher struct {
	// contains filtered or unexported fields
}

func (*Hasher) Compare

func (h *Hasher) Compare(hash, password string) bool

func (*Hasher) Hash

func (h *Hasher) Hash(password string) string

type PasswordHasher

type PasswordHasher interface {
	Hash(password string) string
	Compare(hash, password string) bool
}

func NewPasswordHasher

func NewPasswordHasher(c *conf.Hasher) PasswordHasher

Jump to

Keyboard shortcuts

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