Versions in this module Expand all Collapse all v1 v1.0.0 Jan 5, 2022 Changes in this version + func AesECBDecrypt(key string, ciphertextStr string) (plaintext []byte, err error) + func AesECBEncrypt(key string, plaintext []byte) (ciphertextStr string, err error) + func NewECBDecrypter(b cipher.Block) cipher.BlockMode + func NewECBEncrypter(b cipher.Block) cipher.BlockMode + func PKCS5Padding(ciphertext []byte, blockSize int) []byte + func PKCS5UnPadding(origData []byte) []byte + type JwtToken struct + Token string + TokenTimeline int64 + func CreateAuthToken(in JwtTokenData, t time.Duration) (JwtToken, error) + type JwtTokenData struct + AppId string + OpenId string + Scope string + func CheckAuthToken(authToken string) (out JwtTokenData, err error)