views:

31

answers:

2

We have a licencing server which generates keys using the Java TrueLicense library. I would like to move that code to a Python using the same algorithm so that the new keys will be equivalent with keys generated with the Java code. Perhaps it is possible to use PyCrypto for this. Does anyone know if this can be done without too much effort?

+1  A: 

Some ideas:

  • make an own implentation of TrueLicense in Python
  • write a Java application that interacts with your Python program
  • write your Python app or parts of it in Jython and use the lib directly
leoluk
+1  A: 

Maybe you can use jpype

JPype is an effort to allow python programs full access to java class libraries. This is achieved not through re-implementing Python, as Jython/JPython has done, but rather through interfacing at the native level in both Virtual Machines.

gnibbler