auth

package
v0.0.0-...-becd122 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// SaslPlain method
	SaslPlain = "PLAIN"
)

Variables

This section is empty.

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string, authType string) bool

CheckPasswordHash check given password and hash

func HashPassword

func HashPassword(password string, authType string) (string, error)

HashPassword hash raw password and return hash for check

Types

type SaslData

type SaslData struct {
	Identity string
	Username string
	Password string
}

SaslData represents standard SASL properties

func ParsePlain

func ParsePlain(response []byte) (SaslData, error)

ParsePlain check and parse SASL-raw data and return SaslData structure

Jump to

Keyboard shortcuts

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