Documentation ¶
Overview ¶
* @Name: * @Descripttion: * @Warning: * @version: * @Author: moo * @Date: 2020-10-29 18:27:27 * @LastEditors: moo * @LastEditTime: 2020-10-30 19:03:03
Index ¶
- func GeneEmailValidateCode(orgid uint, uid uint) (string, error)
- func GenePwdHash(userPassword string) (string, error)
- func GeneSalt() string
- func GeneToken(uid uint, exp_min ...int) (string, error)
- func InitJwt(secret string)
- func RandomNum(n int) string
- func RandomString(n int) string
- func RsaDecrypt(ciphertext []byte) ([]byte, error)
- func RsaEncrypt(origData []byte) ([]byte, error)
- func ValidatePwd(userPassword string, hashed string) bool
- type Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomString ¶
RandomString returns a random string with a fixed length
Types ¶
Click to show internal directories.
Click to hide internal directories.