register

package
v0.0.0-...-ae4999c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(owner, hardwareFingerprints string) string

计算一个注册码

第一步:生成一个4位随机密码
第二步:使用上面的密码做为hmac算法密码加密(owner + fingerprints)
第三步:取第二步结果的首尾各4位字符,
第四步:密码+第三步的两个字符串合成注册码

func Fingerprints

func Fingerprints() string

获取本机特征码

func Verify

func Verify(owner, code string) bool

检验注册码

Types

This section is empty.

Jump to

Keyboard shortcuts

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