auth

package
v0.1.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) (string, error)

func HashResetCode

func HashResetCode(key []byte, code string) []byte

func HashToken

func HashToken(value string) []byte

func NewResetCode

func NewResetCode() (string, error)

func ValidatePassword

func ValidatePassword(password string) error

func VerifyPassword

func VerifyPassword(password, encoded string) bool

func VerifyResetCode

func VerifyResetCode(key []byte, code string, expected []byte) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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