crypto

package
v0.0.0-...-93060db Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 18 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 EncryptRsaPrivateKey

func EncryptRsaPrivateKey()

func GenHmacSha256

func GenHmacSha256(key string, secret string) string

func SignRsaSHA256

func SignRsaSHA256(privateKey string, data interface{}) (string, error)

func VerifySignRsaSha256

func VerifySignRsaSha256(key, sign string, data interface{}) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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