passlib

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Params = &argon2id.Params{
		Memory:      65536,
		Iterations:  4,
		Parallelism: 1,
		SaltLength:  16,
		KeyLength:   32,
	}
	ErrNotMatch = errors.New("密码校验不匹配")
)

Functions

func Hash

func Hash(password string) (string, error)

Hash 创建密码散列

func Verify

func Verify(password string, hash string) error

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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