lic

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrivateKeyFileName = "private.key"

	LicenseFileName = "license.lic"
)

Variables

This section is empty.

Functions

func GenEncryptLicenseFile

func GenEncryptLicenseFile(filePath string, expirationDays int) error

GenEncryptLicenseFile 生成并加密license文件

func GenRSAKeyPair

func GenRSAKeyPair(filePath string) error

GenRSAKeyPair 生成公钥私钥并保存成文件

func VerifyLicense

func VerifyLicense(licenseFilePath, privateKeyFilePath string) (bool, error)

VerifyLicense 验证license文件是否过期

Types

This section is empty.

Jump to

Keyboard shortcuts

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