Documentation
¶
Index ¶
- Constants
- func Bin2Hex(bin string) (string, error)
- func CheckActivationCode(activationcode string, fixedcode string) (bool, error)
- func CreateActivationCode(machinecode string, date string, param string, fixedcode string) (string, error)
- func DecryptDate(encryptedDate string) (string, error)
- func EncryptDate(date string) (string, error)
- func GetCheckCode(fixedcode string, date string, param string) (string, error)
- func GetMachineCode(fixedcode string) string
- func Hex2Bin(hex string) (string, error)
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 CheckActivationCode ¶ added in v0.1.2
验证激活码
func CreateActivationCode ¶ added in v0.1.2
func CreateActivationCode(machinecode string, date string, param string, fixedcode string) (string, error)
获取激活码
func GetCheckCode ¶ added in v0.1.2
获取校验码
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.