hmac

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HMACSignaturePrefix = "dumbproxy grant token v1"
	HMACExpireSize      = 8
)

Variables

This section is empty.

Functions

func NewHasher added in v1.1.0

func NewHasher(secret []byte) hash.Hash

Types

type Verifier added in v1.1.0

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

func NewVerifier added in v1.1.0

func NewVerifier(secret []byte, strict bool) *Verifier

func (*Verifier) VerifyLoginAndPassword added in v1.1.0

func (v *Verifier) VerifyLoginAndPassword(login, password []byte) bool

Jump to

Keyboard shortcuts

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