auth

package
v0.0.0-...-915d5cb Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authentication

type Authentication struct {
	RawKeyList   []string
	KeySelectors map[string][]tool.AES192Key
	// contains filtered or unexported fields
}

func NewAuthentication

func NewAuthentication(keys []string) *Authentication

func (*Authentication) Auth

func (a *Authentication) Auth(selector string, authField []byte, additionalData ...[]byte) (bool, tool.AES192Key)

func (*Authentication) GetAllAuthKeys

func (a *Authentication) GetAllAuthKeys() map[string]tool.AES192Key

func (*Authentication) GetRandomSalt

func (a *Authentication) GetRandomSalt() []byte

func (*Authentication) GetSaltB64

func (a *Authentication) GetSaltB64() string

Jump to

Keyboard shortcuts

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