system

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Custom gin.H
View Source
var Define gin.H
View Source
var InvalidVertify bool
View Source
var IsLog bool

Functions

func ECCInit added in v1.0.6

func ECCInit()

func FMT added in v0.3.31

func FMT(a ...any)

func FullInit

func FullInit(aes string, tea [4]uint32, setPath string, getPath string) error

func Init

func Init(aes string, tea [4]uint32) error

func RSA_Decrypt added in v1.0.2

func RSA_Decrypt(cipherText []byte, privateKeyPath string) ([]byte, error)

使用私钥解密数据

func RSA_Encrypt added in v1.0.2

func RSA_Encrypt(plainText []byte, publicKeyPath string) ([]byte, error)

使用公钥加密数据

func RandomTea added in v0.1.4

func RandomTea() string

func RefreshCustom added in v1.0.0

func RefreshCustom(data []byte)

func RefreshDefine added in v1.0.0

func RefreshDefine(data []byte)

func RefreshSetting

func RefreshSetting(data []byte)

func RefreshVerify added in v1.0.0

func RefreshVerify(data []byte) error

func Sign_Data added in v1.0.2

func Sign_Data(message []byte, privateKeyPath string) ([]byte, error)

使用私钥对数据签名

func Verify_Signature added in v1.0.2

func Verify_Signature(message []byte, signature []byte, publicKeyPath string) error

使用公钥验证签名

Types

type SettingData_t

type SettingData_t struct {
	Url          string // 网络地址
	Port         int    // 程序端口
	Origin       string // 跨域支持的网站
	LoginTimeout int64  // 登录过期分钟数
	ImagePath    string // 本地图片路径
	ImageUrl     string // 图片地址
	FilePath     string // 本地文件路径
	FileUrl      string // 文件地址
	Other        gin.H  // 其他
}
var Setting SettingData_t

type SettingVertify_t added in v1.0.0

type SettingVertify_t struct {
	Vertify string // 校验码
}
var Verfify SettingVertify_t

Jump to

Keyboard shortcuts

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