hmac

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HMACSignaturePrefix = "dumbproxy grant token v1"
	HMACSignatureSize   = 32
)

Variables

This section is empty.

Functions

func CalculateHMACSignature

func CalculateHMACSignature(secret, username []byte, expire int64) []byte

func VerifyHMACLoginAndPassword

func VerifyHMACLoginAndPassword(secret, login, password []byte) bool

Types

type HMACToken

type HMACToken struct {
	Expire    int64
	Signature [HMACSignatureSize]byte
}

Jump to

Keyboard shortcuts

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