Documentation
¶
Index ¶
- Variables
- func ECCInit()
- func FMT(a ...any)
- func FullInit(aes string, tea [4]uint32, setPath string, getPath string) error
- func Init(aes string, tea [4]uint32) error
- func RSA_Decrypt(cipherText []byte, privateKeyPath string) ([]byte, error)
- func RSA_Encrypt(plainText []byte, publicKeyPath string) ([]byte, error)
- func RandomTea() string
- func RefreshCustom(data []byte)
- func RefreshDefine(data []byte)
- func RefreshSetting(data []byte)
- func RefreshVerify(data []byte) error
- func Sign_Data(message []byte, privateKeyPath string) ([]byte, error)
- func Verify_Signature(message []byte, signature []byte, publicKeyPath string) error
- type SettingData_t
- type SettingVertify_t
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 RSA_Decrypt ¶ added in v1.0.2
使用私钥解密数据
func RSA_Encrypt ¶ added in v1.0.2
使用公钥加密数据
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
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
Click to show internal directories.
Click to hide internal directories.