random_auth_key

package
v0.55.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 4 Imported by: 0

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 AuthKey

type AuthKey struct {
	BaseKey  string // 基础的密钥,密钥会基于这个基础的密钥生成
	AESKey16 string // AES密钥
	AESIv16  string // 初始化向量
}

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 获取这个小时的认证密码

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL