Documentation ¶
Index ¶
Constants ¶
View Source
const ( BaseKey = "0123456789123456789" // 基础的密钥,密钥会基于这个基础的密钥生成 AESKey16 = "1234567890123456" // AES密钥 AESIv16 = "1234567890123456" // 初始化向量 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RandomAuthKey ¶
type RandomAuthKey struct {
// contains filtered or unexported fields
}
RandomAuthKey 伪随机的登录验证 Key
func NewRandomAuthKey ¶
func NewRandomAuthKey(offset int, authKey AuthKey) *RandomAuthKey
NewRandomAuthKey offset 建议是 5
func (*RandomAuthKey) GetAuthKey ¶
func (r *RandomAuthKey) GetAuthKey() (string, error)
GetAuthKey 获取这个小时的认证密码
Click to show internal directories.
Click to hide internal directories.