digest

package
v1.51.21 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BcryptCheck

func BcryptCheck(password, hash string) bool

BcryptCheck 对比明文密码和数据库的哈希值

func BcryptHash

func BcryptHash(password string) string

BcryptHash 使用 bcrypt 对密码进行加密

func Md5

func Md5(original []byte) (string, error)

Md5 编码

func Sha256

func Sha256(original []byte) (string, error)

Sha256 摘要算法

func Sha256Sum256

func Sha256Sum256(original []byte) string

Sha256Sum256 摘要算法

func Sm3

func Sm3(original []byte) string

Sm3 生成sm3摘要

Types

This section is empty.

Jump to

Keyboard shortcuts

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