auth

package
v0.0.0-...-eb26ef5 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const SaltSize = 32

Variables

This section is empty.

Functions

func GenerateSalt

func GenerateSalt() string

func GenerateSaltBytes

func GenerateSaltBytes() []byte

func HashKey

func HashKey(b64Key string, b64ServerSalt string) (string, error)

func HashNewKey

func HashNewKey(b64Key string) (b64HashedKey string, b64ServerSalt string, err error)

func VerifyCredentials

func VerifyCredentials(storedPasswordHash string, storedServerSalt string, basicAuthorizationHeader string) (areCredentialsValid bool, username string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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