modules

package
v0.0.1004 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 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 BcryptHasher

type BcryptHasher struct {
}

func NewBcryptHasher

func NewBcryptHasher() *BcryptHasher

func (*BcryptHasher) Compare

func (u *BcryptHasher) Compare(hashedPassword, password []byte) error

func (*BcryptHasher) Cost

func (u *BcryptHasher) Cost(hashedPassword []byte) (int, error)

func (*BcryptHasher) Hash

func (u *BcryptHasher) Hash(password []byte) ([]byte, error)

type IHasher

type IHasher interface {
	Hash([]byte) ([]byte, error)
	Compare([]byte, []byte) error
	Cost([]byte) (int, error)
}

Jump to

Keyboard shortcuts

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