Versions in this module Expand all Collapse all v1 v1.0.2 Apr 8, 2022 Changes in this version + func GetToken(c jwt.Claims, key string) (string, error) + func MD5(str string) string + func MD516(str string) string + func RsaDecrypt(ciphertext []byte) ([]byte, error) + func RsaEncrypt(origData []byte) ([]byte, error) + func SHA256(str string) string + type AppToken struct + AppFlag string + AppId string + func ParseAppToken(tokenString string) (*AppToken, error) + func (a *AppToken) GetToken() (token string, err error) + type UserToken struct + ApplicationFlag string + SubId string + Timestamp int64 + func ParseUserToken(tokenString string) (*UserToken, error) + func (u *UserToken) GetToken() (token string, err error)