Documentation ¶
Index ¶
- func GenerateSecretKey(seed string) (string, error)
- func GenerateSeed() string
- func GetNewCode(secretKey string, curTimeSlice int64) uint32
- func SHA1(data []byte) []byte
- func SHA1PRNG(seed []byte, size int) ([]byte, error)
- func SHA512(data []byte) []byte
- func ValidCode(secretKey string, code uint32, size ...int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNewCode ¶
* @生成code验证码 * @secretKey 密钥 * @curTimeSlice 当前时间戳 - time.Now().Unix()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.