auth

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const SaslPlain = "PLAIN"

SaslPlain method

Variables

This section is empty.

Functions

func CheckPasswordHash

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

CheckPasswordHash check given password and hash

func HashPassword

func HashPassword(password string, isMd5 bool) (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