如何在 Python 中生成 TrueLicence
我们有一个许可服务器,它使用 Java TrueLicense 库生成密钥。我想使用相同的算法将该代码移至 Python,以便新密钥与 Java 代码生成的密钥等效。也许可以使用 PyCrypto 来实现此目的。有谁知道这是否可以在不需要太多努力的情况下完成?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
虽然已经晚了,但对于遇到类似问题的其他人来说:
我已经花时间阅读了 TrueLicense 源代码并用 Ruby 重新实现了其中的大部分内容。如果您愿意的话,也许可以帮助您在 Python 中重新实现它:
https://github.com/einarmagnus/truby_license
This is late, but for anyone else coming here with similar problems:
I have taken the time to read through the TrueLicense source and reimplement most of it in Ruby. Maybe that can help you reimplement it in Python if you wish:
https://github.com/einarmagnus/truby_license
一些想法:
Some ideas:
也许你可以使用 jpype
Maybe you can use jpype