security

package
v0.0.0-...-15880ea Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPwd

func CheckPwd(password, hashedPassword string) bool

func Decode

func Decode(appSecret string, tokenString string) (jwt.MapClaims, error)

func Encode

func Encode(appSecret string, payload jwt.MapClaims, expireAt *time.Time) (string, error)

func HashPwd

func HashPwd(password string) (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