hmac

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(key []byte) *Decoder

func (*Decoder) Base64Decode

func (d *Decoder) Base64Decode(input string) *DecoderResult

func (*Decoder) Decode

func (d *Decoder) Decode(data []byte) *DecoderResult

func (*Decoder) HexDecode

func (d *Decoder) HexDecode(hexdata string) *DecoderResult

type DecoderResult

type DecoderResult struct {
	// contains filtered or unexported fields
}

func (*DecoderResult) Bytes

func (d *DecoderResult) Bytes() []byte

func (*DecoderResult) String

func (d *DecoderResult) String() string

func (*DecoderResult) UnmarshalJson

func (d *DecoderResult) UnmarshalJson(data any)

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(key []byte) *Encoder

func (*Encoder) Encode

func (e *Encoder) Encode(data []byte) *EncoderResult

func (*Encoder) EncodeString

func (e *Encoder) EncodeString(data string) *EncoderResult

func (*Encoder) JsonEncode

func (e *Encoder) JsonEncode(s any) *EncoderResult

type EncoderResult

type EncoderResult struct {
	// contains filtered or unexported fields
}

func (*EncoderResult) Base64

func (e *EncoderResult) Base64() string

func (*EncoderResult) Hex

func (e *EncoderResult) Hex() string

Jump to

Keyboard shortcuts

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