password

package
v0.0.0-...-5fdd26c Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyPassword       = errors.New("password is empty")
	ErrInvalidHash         = errors.New("the encoded hash is not in the correct format")
	ErrIncompatibleVersion = errors.New("incompatible version of argon2")
)

Functions

func HashPassword

func HashPassword(password string, p HashingParams) (string, error)

func VerifyPassword

func VerifyPassword(rawPassword string, hashedPassword string) (bool, error)

Types

type HashingParams

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

func GetHashingParams

func GetHashingParams() HashingParams

Jump to

Keyboard shortcuts

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