A tiny license tool package
Create license is very simple. User provide information, we encrypt the information with MAGIC string. Then use the MAGIC string we can encrypt user information again to check valid or not. Simple, right? Have fun!
go get github.com/spotmaxtech/licensepackage main
import "github.com/spotmaxtech/license"
func main() {
l := license.NewLicenseManger("123456789")
key, _ := l.CreateLicense([]byte("jinjin"))
}