hash

package
v0.0.0-...-dc61bab Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Use    string        `mapstructure:"use"`
	Bcrypt bcrypt.Config `mapstructure:"bcrypt"`
	Argon2 argon2.Config `mapstructure:"argon2"`
}

type HasherService

type HasherService interface {
	HashPassword(password string) (string, error)
	VerifyPassword(password, hash string) bool
}

HasherService provides hashing logic to securely store passwords.

func NewHasherService

func NewHasherService(cfg Config) (HasherService, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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