Documentation
¶
Index ¶
- func GenerateFingerprint() (string, error)
- func GenerateLicense(fingerprint string, license License) (string, error)
- func GenerateRsaKey(publicPemPath, privatePemPath string) error
- func RsaDecrypt(encrypt []byte) ([]byte, error)
- func RsaEncrypt(content []byte) ([]byte, error)
- func SetPrivatePem(privateFile string) error
- func SetPublicPem(publicFile string) error
- type Authorization
- type License
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateFingerprint ¶
func GenerateRsaKey ¶
func RsaDecrypt ¶
func RsaEncrypt ¶
func SetPrivatePem ¶
func SetPublicPem ¶
Types ¶
type Authorization ¶
type License ¶
type License struct {
IsForever bool `json:"isForever"`
ValidDatetime string `json:"validDatetime"`
CurrentDatetime string `json:"currentDatetime"`
ValidDuration int `json:"validDuration"`
CurrentDuration int `json:"currentDuration"`
Authorizations []Authorization `json:"authorizations,omitempty"`
}
func LoadLicense ¶
Click to show internal directories.
Click to hide internal directories.