utils

package
v0.0.0-...-edf7997 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateToken

func CreateToken(ttl time.Duration, payload interface{}, privateKey string) (string, error)

func HashPassword

func HashPassword(pwd string) (string, error)

func ValidateToken

func ValidateToken(token, publicKey string) (interface{}, error)

func VerifyPassword

func VerifyPassword(hashedPwd, enteredPwd string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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