utils

package
v0.0.0-...-ad6e858 Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareHashPass

func CompareHashPass(pass string, hash string) bool

CompareHashPass: compares a hash and a password params: password string, hash string returns: bool, true if they match, false otherwise

func HashPass

func HashPass(pass string) (string, error)

HashPass: hashes a password with a salt params: password string returns: string or err, the hashed password,

func SignJWT

func SignJWT(userID *string) (*string, error)

SignJWT : func to generate JWT

func ValidateJWT

func ValidateJWT(tokenString *string) (*string, error)

ValidateJWT : func to parse JWT and to return the identity

Types

This section is empty.

Jump to

Keyboard shortcuts

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