Skip to content

Releases: Cryptolens/cryptolens-python

v_43: Add new API methods to the Key class

19 Feb 19:41
568dac4

Choose a tag to compare

In this release, MachineLockLimit, ChangeNotes, ChangeReseller and CreateKeyFromTemplate were added to the Key class.

v_42: Add metadata property in Key.Activate

07 Feb 13:59
3df4ae2

Choose a tag to compare

In this release, we added support for the metadata field that can be returned by Key.Activate. When metadata=true in the Key.Activate call, it will return an array of three elements instead of two, where the third element is the value of the additional metadata for a specific license.

v_41: Add an error if period exceeds the limit

14 Sep 15:15
226dcac

Choose a tag to compare

This release adds a new error message to Key.activate that will be thrown if the period exceeds the permitted limit in Python. The problem is described in https://github.com/Cryptolens/cryptolens-python/tree/master#the-expiration-date-cannot-be-converted-to-a-datetime-object-please-try-setting-the-period-to-a-lower-value, but in essence, the issue is that the timestamp representation of the expiration date causes an overflow in Python, and thus an error is thrown.

v_40: Improvements to the signature verification method

14 Jun 12:33
42a2de4

Choose a tag to compare

Use constant time comparison when available (#59)

* Use constant time comparison when available

* Update setup.py

v_39: Add GetKeys method and fix cmd window from showing up when computing machine code

08 Feb 12:30

Choose a tag to compare

v_38: Add Decrement Int Value to Key

16 Dec 14:02
892d7de

Choose a tag to compare

Add DecrementIntValueToKey (#56)

* Update methods.py

* Update setup.py

v_37: Fix an issue in HasFeature method

19 Sep 14:03

Choose a tag to compare

In this update we fixed an issue that could occur if a license did not have the data object required for feature templates or if the content of it was empty.

v_36: Support for proxy servers

28 Jul 14:23

Choose a tag to compare

In this release, we have added support for proxy servers defined on OS level. To enable it, you can add the following command before calling any other API method such as Key.activate.

HelperMethods.proxy_experimental = True

v_35: Update return value in GetMachineCode upon error

29 Jun 14:13

Choose a tag to compare

This updates changes the behaviour of Helpers.GetMachineCode when the library is unable to retrieve the UUID. If this occurs, None will be returned.

v_34: Update UUID source for Windows

22 Apr 13:05

Choose a tag to compare

When the machine code, we rely on the UUID that is provided by the OS. On Windows, we used to use wmic to obtain the UUID. As pointed out by @pmnforce in #50, it will be deprecated in Windows 11. We are thus switching to a different method to compute it, i.e., as follows:

cmd /c powershell.exe -Command "(Get-CimInstance -Class Win32_ComputerSystemProduct).UUID"

Based on our tests, this will not affect the value of the machine code, i.e., this update is backwards compatible.