util

package
v0.0.0-...-2b407f8 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(c *godi.Container) error

func ValidatePassword

func ValidatePassword(pass string) bool

Types

type Hasher

type Hasher struct {
	// contains filtered or unexported fields
}

Hasher password hashing service

func NewHash

func NewHash() (*Hasher, error)

func (*Hasher) Compare

func (h *Hasher) Compare(psw string, hashedPsw string) (bool, error)

func (*Hasher) Hash

func (h *Hasher) Hash(psw string) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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