2025-06-17 14:19:00 +08:00
2025-06-17 14:19:00 +08:00
2024-01-22 16:09:48 +08:00
2024-01-22 15:32:53 +08:00
2024-12-10 09:13:41 +08:00
2024-12-05 16:34:31 +08:00
2024-12-10 09:13:41 +08:00
2025-06-17 14:19:00 +08:00
2024-01-22 15:32:53 +08:00
2025-02-26 16:50:34 +08:00
2024-02-02 13:12:19 +08:00
2025-06-17 14:19:00 +08:00
2025-06-17 14:19:00 +08:00

go-license(software license)

go-license is a project written in Go language for generating and validating software license files. It can be integrated into your software as a license validation framework.

Features

  • You can customize the addition of verification processing methods. Such as binding IP, MAC, etc.
  • Using RSA and AES encryption to activate and license content.
  • Less dependence, unique acquisition of computer identification. github.com/shirou/gopsutil/v3

How to use

This project is divided into two partsgo-licensecli and go-licensemanage

go-licensecli

go-licensecli Used for integration into the program. Main functions: generate activation files, verify license files.

client Main implementation interfaces

type LicenseCli interface {
	GenerateActivationCode(opts ...GenerateOption) ([]byte, error)
	ActivateLicense(licenseCode []byte) error
	VerifyLicense() bool
	GetLicenseInfo() (*LicenseInfo, error)
}

Specific View:https://github.com/xslasd/go-license.

go-licensemanage

go-licensemanage Used for managing licenses. Main functions: parsing activation files and generating license files.

  GenerateLicense(rsaKey RSAKeyConfig, activationCode []byte, expiryTime int64, opts ...Option) ([]byte, error)
  GenerateRSAKey() (RSAKeyModel, error)

Specific View: https://github.com/xslasd/go-licensemanage

Third-party Library

github.com/shirou/gopsutil/v3
Description
go-license is a project written in Go language for generating and validating software license files. It can be integrated into your software as a license validation framework.
Readme Apache-2.0 1.9 MiB
Languages
Go 99.5%
Batchfile 0.5%