hmacx

package
v1.5.11 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMAC

type HMAC[T any, H hash.Hash] struct {
	// contains filtered or unexported fields
}

func HMACHash

func HMACHash[H hash.Hash](hmacFunc HmacFunc[H], data string) HMAC[string, H]

func (HMAC[T, H]) Hash added in v1.3.1

func (h HMAC[T, H]) Hash() To[T, H]

func (HMAC[T, H]) HashString

func (h HMAC[T, H]) HashString() (str string)

func (*HMAC[T, H]) Scan

func (h *HMAC[T, H]) Scan(value interface{}) error

func (HMAC[T, H]) Value

func (h HMAC[T, H]) Value() (driver.Value, error)

type HmacFunc

type HmacFunc[h hash.Hash] func() (h, error)

type To added in v1.3.1

type To[T any, H hash.Hash] struct {
	// contains filtered or unexported fields
}

func (To[T, H]) ToBytes added in v1.3.1

func (t To[T, H]) ToBytes() []byte

func (To[T, H]) ToLast8DigitValue added in v1.3.1

func (t To[T, H]) ToLast8DigitValue() string

func (To[T, H]) ToString added in v1.3.1

func (t To[T, H]) ToString() string

Jump to

Keyboard shortcuts

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