crypto

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPwdByPbkdf2

func CheckPwdByPbkdf2(pwd, encrypt string) (ok bool)

CheckPwdByPbkdf2 CheckEncryptPwdMatch 验证密码是否与加密串匹配

func EncryptPwdByPbkdf2

func EncryptPwdByPbkdf2(pwd string) (encrypt string, err error)

EncryptPwdByPbkdf2 EncryptPwd 加密密码

func GenHmacSha256

func GenHmacSha256(key string, secret string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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