Documentation ¶
Index ¶
Constants ¶
View Source
const ( PROVATE_KEY string = "" // 定义好的通讯密钥 /* 128-byte string literal not displayed */ TIME_PARSE string = "2006-01-02 15:04" // 默认事件格式化格式 SALT_TIMEOUT time.Duration = 5 )
Variables ¶
This section is empty.
Functions ¶
func MakeAuthBySalt ¶
依靠盐生成第二步验证数据 生成验证盐值 拿加密的 salt盐值字符串 + 输入时间格式化到 "2006-01-02 15:04" 格式的字符串 + 内部私有key 进行sha1算法hash
Types ¶
type AuthStatus ¶
Click to show internal directories.
Click to hide internal directories.