jwt

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Jwts = make(map[string]bool)

Jwts 用来判断是否执行过爆破

View Source
var Secrets []string

Functions

func GenerateSignature

func GenerateSignature(pwds ...string) string

GenerateSignature 使用字典爆破 ,默认字典加上根据域名生成的字典

Types

type Claims

type Claims struct {
	jwt.StandardClaims
}

Claims defines the struct containing the token claims.

func Verify

func Verify(jwtString string, secret string) (*Claims, error)

type Jwt

type Jwt struct {
	Header  string `json:"header"`
	Payload string `json:"payload"`
	Message string `json:"message"`

	SignatureStr string `json:"signature"`
	// contains filtered or unexported fields
}
var Twj *Jwt

func ParseJWT

func ParseJWT(input string) (*Jwt, error)

Jump to

Keyboard shortcuts

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