Help us shape the future of Go! Take the 2026 Go Developer Survey

auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) ([]byte, error)

func LoginGetPassword

func LoginGetPassword(username string) (storedPassword []byte, valid bool)

func RegisterUserDatabase

func RegisterUserDatabase(username string, password []byte) (valid bool)

func UsernameExists

func UsernameExists(username string) (exists bool, error bool)

func ValidPassword

func ValidPassword(password string) bool

Validation

func ValidUsername

func ValidUsername(username string) bool

func VerifyPassword

func VerifyPassword(storedPassword []byte, password string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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