password_hasher

package
v0.0.0-...-19c73cf Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BcryptPasswordHash  passwordHashType = iota
	Argon2iPasswordHash passwordHashType = iota
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PasswordHasher

type PasswordHasher interface {
	GeneratePasswordHashWithSalt(rawPassword string) (hashedPass, salt string, err error)
	CompareHashAndPassword(hashedPassword, salt, pasword string) (ok bool, err error)
}

func NewPasswordHasher

func NewPasswordHasher(hashType passwordHashType) PasswordHasher

Jump to

Keyboard shortcuts

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