licence

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 13 Imported by: 0

README

licence

Documentation

Index

Constants

View Source
const (
	// 月 "123456789XAB" 分别代表 1-12月
	MonthEnum = "123456789XAB"
	// 日 "123456789ABCDEFGHJKMNPQRSTUVWXY" 分别代表 1-31 日
	DayEnum = "123456789ABCDEFGHJKMNPQRSTUVWXY"
	// 日期显示格式
	DateFormat = "2006-01-02"
)

Variables

This section is empty.

Functions

func Bin2Hex added in v0.1.2

func Bin2Hex(bin string) (string, error)

二进制转16进制

func CheckActivationCode added in v0.1.2

func CheckActivationCode(activationcode string, fixedcode string) (bool, error)

验证激活码

func CreateActivationCode added in v0.1.2

func CreateActivationCode(machinecode string, date string, param string, fixedcode string) (string, error)

获取激活码

func DecryptDate added in v0.1.2

func DecryptDate(encryptedDate string) (string, error)

日期解密

func EncryptDate added in v0.1.2

func EncryptDate(date string) (string, error)

日期加密

func GetCheckCode added in v0.1.2

func GetCheckCode(fixedcode string, date string, param string) (string, error)

获取校验码

func GetMachineCode

func GetMachineCode(fixedcode string) string

获取机器码 @param fixedcode 参与MD5计算

func Hex2Bin added in v0.1.2

func Hex2Bin(hex string) (string, error)

16进制转二进制

Types

This section is empty.

Jump to

Keyboard shortcuts

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