DongleList Class

From Derivative
Jump to: navigation, search

A list of dongles connected to the system.


Members

No operator specific members.


Methods

refreshDongles()None:

Refreshes the list of dongles connected to the system and their product codes.

encrypt(firmCode, productCode, data)ByteArray:

Encrypts a string or byte array using a CodeMeter dongle with a given firm code and product code installed on it. If successful it returns a byte array with the encrypted data.

  • firmCode - The firm code to use. It must be present on the dongle.
  • productCode - The product code to use. It must be present on the dongle.
  • data - A string or byte array to encrypt. Must be 16 bytes in size at least.

decrypt(firmCode, productCode, data)ByteArray:

Decrypts a string or byte array using a CodeMeter dongle with a given firm code and product code installed on it. If successful it returns a byte array with the decrypted data.

  • firmCode - The firm code to use. It must be present on the dongle.
  • productCode - The product code to use. It must be present on the dongle.
  • data - A string or byte array to decrypt. Must be 16 bytes in size at least.

productCodeInstalled()bool:

Returns True if the provided product code is installed on any of the connected dongles.