Versions in this module Expand all Collapse all v1 v1.0.1 Feb 3, 2021 Changes in this version + 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 struct + Current string + Name string + Type string + ValueType string + Values []string + type License struct + Authorizations []Authorization + CurrentDatetime string + CurrentDuration int + IsForever bool + ValidDatetime string + ValidDuration int + func LoadLicense(content string) (*License, error)