crypto

package
v0.0.0-...-8e87c78 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateJWT

func GenerateJWT(id string, targetRole string) *string

func GenerateRandomCode

func GenerateRandomCode(max_digits int) (string, error)

func GetFieldFromJWT

func GetFieldFromJWT(tokenString string, field string) (string, error)

func GetJWTFromRequest

func GetJWTFromRequest(w http.ResponseWriter, r *http.Request) *string

func HashPassword

func HashPassword(password string) (string, error)

func ValidateJWT

func ValidateJWT(tokenString string) bool

func VerifyPassword

func VerifyPassword(bodyPassword string, hashedPassword 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