licenseinfo

package
v5.0.0-preview.1+incom... Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptFromBase64

func DecryptFromBase64(encryptionKey []byte, b64 string) (string, error)

func EncryptToBase64

func EncryptToBase64(encryptionKey, text []byte) (string, error)

func GetLicenseInfo

func GetLicenseInfo(license string, symmetricKey []byte) (string, error)

func LicenseFromB64String

func LicenseFromB64String(str string) (*signedLicenseInfo, error)

LicenseFromB64String returns a signedLicenseInfo from a non-encrypted base64 encoded string.

func ObjFromB64String

func ObjFromB64String(obj interface{}, s string) error

func ObjFromBytes

func ObjFromBytes(obj interface{}, b []byte) error

func ObjToB64String

func ObjToB64String(obj interface{}) (string, error)

func ObjToBytes

func ObjToBytes(obj interface{}) ([]byte, error)

--------------------------------------------------------------------------------------------------------------

func PublicKeyFromB64String

func PublicKeyFromB64String(str string, metered bool) (*ecdsa.PublicKey, error)

PublicKeyFromB64String returns a public key from a base64 encoded string.

func PublicKeyFromBytes

func PublicKeyFromBytes(b []byte, metered bool) (*ecdsa.PublicKey, error)

-------------------------------------------------------------------------------------------------------------- PublicKeyFromBytes returns a public key from a []byte.

func VerifyLicenseSignature

func VerifyLicenseSignature(licCode string, pubKey *ecdsa.PublicKey, symmetricKey []byte) (string, error)

to verify whether an encrypted signed license code is valid or not. Caller provides the public signing key & encryption key

Types

This section is empty.

Jump to

Keyboard shortcuts

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