Documentation ¶
Index ¶
- func CreateToken(ttl time.Duration, payload interface{}, privateKey string) (string, error)
- func EncodeMD5(value string) string
- func GenerateToken(username, password string) (string, error)
- func HashPassword(password string) (string, error)
- func ValidateToken(token string, publicKey string) (interface{}, error)
- func VerifyPassword(hashedPassword string, candidatePassword string) error
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func GenerateToken ¶
func HashPassword ¶
func ValidateToken ¶
func VerifyPassword ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.