Documentation ¶
Index ¶
- func DecryptFromBase64(encryptionKey []byte, b64 string) (string, error)
- func EncryptToBase64(encryptionKey, text []byte) (string, error)
- func GetLicenseInfo(license string, symmetricKey []byte) (string, error)
- func LicenseFromB64String(str string) (*signedLicenseInfo, error)
- func ObjFromB64String(obj interface{}, s string) error
- func ObjFromBytes(obj interface{}, b []byte) error
- func ObjToB64String(obj interface{}) (string, error)
- func ObjToBytes(obj interface{}) ([]byte, error)
- func PublicKeyFromB64String(str string, metered bool) (*ecdsa.PublicKey, error)
- func PublicKeyFromBytes(b []byte, metered bool) (*ecdsa.PublicKey, error)
- func VerifyLicenseSignature(licCode string, pubKey *ecdsa.PublicKey, symmetricKey []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptToBase64 ¶
func LicenseFromB64String ¶
LicenseFromB64String returns a signedLicenseInfo from a non-encrypted base64 encoded string.
func ObjFromB64String ¶
func ObjFromBytes ¶
func ObjToB64String ¶
func ObjToBytes ¶
--------------------------------------------------------------------------------------------------------------
func PublicKeyFromB64String ¶
PublicKeyFromB64String returns a public key from a base64 encoded string.
func PublicKeyFromBytes ¶
-------------------------------------------------------------------------------------------------------------- PublicKeyFromBytes returns a public key from a []byte.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.