biz

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TOKEN_KEY = "GOCODEGEN20220808"
)

Variables

This section is empty.

Functions

func CreatePasswordHash

func CreatePasswordHash(password string) (string, error)

func CreateToken

func CreateToken(tokenPairs map[string]interface{}) (string, error)

func DecodeToken

func DecodeToken(tokenStr string) (map[string]interface{}, error)

func IsPasswordRight

func IsPasswordRight(passwordHashInDb string, passwordLogin string) bool

passwordHashInDb: pasword hash str stored in db passwordLogin: password from login input

Types

This section is empty.

Jump to

Keyboard shortcuts

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