hash

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hex

func Hex(h hash.Hash) string

Hex 返回 hash.Hash 的十六进制编码摘要。

func New

func New(algorithm string) (hash.Hash, error)

New 根据算法名称("md5" 或 "sha256")创建 hash.Hash。

func Sum

func Sum(r io.Reader, algorithm string) (string, error)

Sum 通过流式 I/O 计算 Reader 的十六进制哈希摘要。

Types

This section is empty.

Jump to

Keyboard shortcuts

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