hash

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckHasher

type CheckHasher interface {
	Hasher
	Checker
}

func New

func New() CheckHasher

type Checker

type Checker interface {
	CheckPassword(password, hash string) bool
}

type Hash

type Hash struct{}

func (Hash) CheckPassword

func (h Hash) CheckPassword(password, hash string) bool

func (Hash) HashPassword

func (h Hash) HashPassword(password string, cost int) (string, error)

type Hasher

type Hasher interface {
	HashPassword(password string, cost int) (string, error)
}

Jump to

Keyboard shortcuts

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