Documentation ¶
Index ¶
- 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
- func PageLimit(page, limit int) (int, int)
- type JwtToken
- type JwtTokenData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesECBDecrypt ¶
func AesECBEncrypt ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
type JwtToken ¶
func CreateAuthToken ¶
func CreateAuthToken(in JwtTokenData, t time.Duration) (JwtToken, error)
type JwtTokenData ¶
func CheckAuthToken ¶
func CheckAuthToken(authToken string) (out JwtTokenData, err error)
Click to show internal directories.
Click to hide internal directories.