Documentation ¶
Index ¶
- func GetPriKey(file string) (*rsa.PrivateKey, error)
- func GetPubKey(file string) (*rsa.PublicKey, error)
- func New(method jwt.SigningMethod) *jwt.Token
- func NewWithClaims(method jwt.SigningMethod, claims jwt.Claims) *jwt.Token
- func Parse(tokenString string, keyFunc jwt.Keyfunc) (*jwt.Token, error)
- func ParseString(pubFile string, signStr string) (interface{}, error)
- func ParseWithClaims(tokenString string, claims jwt.Claims, keyFunc jwt.Keyfunc) (*jwt.Token, error)
- func RSADecrypt(pubFile, signingString, signature string) error
- func RSAEncrypt(priFile, signingString string) (string, error)
- func SignedString(priFile string, v interface{}) (string, error)
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithClaims ¶
func NewWithClaims(method jwt.SigningMethod, claims jwt.Claims) *jwt.Token
func ParseString ¶
func ParseWithClaims ¶
func RSADecrypt ¶ added in v1.0.14
RSADecrypt 校验
func RSAEncrypt ¶ added in v1.0.14
RSAEncrypt 加密
func SignedString ¶
SignedString jwt rsa 512 加密
Types ¶
Click to show internal directories.
Click to hide internal directories.