sdhash

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package sdhash 常用Hash算法

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HmacSha1

func HmacSha1(data, key []byte) sdbytes.Slice

func HmacSha256

func HmacSha256(data, key []byte) sdbytes.Slice

func HmacSha512

func HmacSha512(data, key []byte) sdbytes.Slice

func Md5

func Md5(data []byte) sdbytes.Slice

func Sha1

func Sha1(data []byte) sdbytes.Slice

func Sha256

func Sha256(data []byte) sdbytes.Slice

func Sha512

func Sha512(data []byte) sdbytes.Slice

func ValidHmacSha1

func ValidHmacSha1(data, key, expected []byte) bool

func ValidHmacSha256

func ValidHmacSha256(data, key, expected []byte) bool

func ValidHmacSha512

func ValidHmacSha512(data, key, expected []byte) bool

func ValidMd5

func ValidMd5(data, expected []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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