helper

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

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

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComparePassword

func ComparePassword(hashpassword, password string) error

func GenerateJWT

func GenerateJWT(user model.UserCredentials, secretjwt []byte) (string, error)

func GeneratePaseto

func GeneratePaseto(email string, symetricKey string) string

func GenerateUUID

func GenerateUUID() string

func HashPassword

func HashPassword(password string) (string, error)

func IsEmailValid

func IsEmailValid(user model.UserCredentials) error

func Loadenv

func Loadenv() error

func ParseJWT

func ParseJWT(tknHeader string, secretjwt string) (*jwt.Token, error)

parse jwt

func PasswordConstainsOneNumber

func PasswordConstainsOneNumber(s string) bool

func PasswordContainsSpecialChar

func PasswordContainsSpecialChar(s string) bool

func PasswordContainsUppercase

func PasswordContainsUppercase(s string) bool

func PrintAscii

func PrintAscii()

Types

This section is empty.

Jump to

Keyboard shortcuts

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