hash

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package hash provides SHA-256 and HMAC-SHA256 helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HMACSHA256

func HMACSHA256(key, msg []byte) []byte

HMACSHA256 returns the HMAC-SHA256 of msg under key.

func HMACSHA256Hex

func HMACSHA256Hex(key, msg []byte) string

HMACSHA256Hex returns the lowercase hex HMAC-SHA256 of msg under key.

func SHA256Hex

func SHA256Hex(str string) string

SHA256Hex returns the lowercase hex SHA-256 digest of str.

Types

This section is empty.

Jump to

Keyboard shortcuts

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