Documentation
¶
Index ¶
- func AESDecrypt(cryted string, key string) string
- func AESEncrypt(orig string, key string) string
- func GenerateToken(str string) (string, error)
- func GetJWTSecret() []byte
- func GetSnowflake() (*snowflake.ID, error)
- func GetUUID() uuid.UUID
- func PKCS7Padding(ciphertext []byte, blocksize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func RandomString(n int, allowedChars string) string
- func SendTextEmail(emailArr []string, subject string, textContent string) error
- func VerifyParm(s interface{}) error
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJWTSecret ¶
func GetJWTSecret() []byte
func SendTextEmail ¶
发送文本邮箱
Types ¶
type Claims ¶
type Claims struct {
Info string `json:"info"`
jwt.StandardClaims
}
Click to show internal directories.
Click to hide internal directories.