secret

package
v0.0.0-...-ea7d51e Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crypto

type Crypto interface {
	Name() string
	Sign(msg string, secret string) ([]byte, error)
}

type HmacSha256

type HmacSha256 struct{}

func (*HmacSha256) Name

func (h *HmacSha256) Name() string

func (*HmacSha256) Sign

func (h *HmacSha256) Sign(msg string, secret string) ([]byte, error)

type HmacSha512

type HmacSha512 struct{}

func (*HmacSha512) Name

func (h *HmacSha512) Name() string

func (*HmacSha512) Sign

func (h *HmacSha512) Sign(msg string, secret string) ([]byte, error)

Jump to

Keyboard shortcuts

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