auth

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPassHasher

func InitPassHasher()

Types

type BcryptHasher

type BcryptHasher struct{}

func (*BcryptHasher) CompareHashAndPassword

func (h *BcryptHasher) CompareHashAndPassword(hashedPassword string, password string) error

func (*BcryptHasher) HashPassword

func (h *BcryptHasher) HashPassword(password string) (string, error)

type PasswordHasher

type PasswordHasher interface {
	HashPassword(password string) (string, error)
	CompareHashAndPassword(hashedPassword string, password string) error
}
var PassHasher PasswordHasher

Jump to

Keyboard shortcuts

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