helper

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PasswordParams = argon2id.DefaultParams
	NotMatch       = errors.New("the password does not match the hash value")
)

Functions

func ExtendValidation

func ExtendValidation()

ExtendValidation 扩展验证

func PasswordHash added in v0.0.2

func PasswordHash(password string) (string, error)

PasswordHash 创建密码的散列

func PasswordVerify added in v0.0.2

func PasswordVerify(password string, hash string) error

PasswordVerify 验证密码是否和散列值匹配

func Uuid

func Uuid() string

Uuid 生成 UUIDv4 字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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