Documentation
¶
Index ¶
Constants ¶
View Source
const (
// Size 输出大小 (16 字节 / 128 位)
Size = 16
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SHA256_128Hasher ¶
type SHA256_128Hasher struct{}
SHA256_128Hasher SHA256-128 哈希器
func NewSHA256_128Hasher ¶
func NewSHA256_128Hasher() *SHA256_128Hasher
NewSHA256_128Hasher 创建 SHA256-128 哈希器
func (*SHA256_128Hasher) Sum ¶
func (h *SHA256_128Hasher) Sum(data []byte) []byte
Sum 计算 SHA256-128 哈希值
func (*SHA256_128Hasher) SumHex ¶
func (h *SHA256_128Hasher) SumHex(data []byte) string
SumHex 计算 SHA256-128 哈希并返回十六进制字符串
Click to show internal directories.
Click to hide internal directories.