PyECC 示例 - Python 椭圆曲线密码学
我正在使用 PyECC - 它是我能找到的唯一的 python 椭圆曲线加密模块。我想知道是否有人有如何使用该模块的示例?我会尝试阅读源代码,但我在 Stack Overflow 上找不到有关 python 主题的任何内容。
谢谢!
I am working with PyECC - it is the only elliptic curve cryptography module for python that I can find. I was wondering if anyone had an example of how to use the module? I'll try reading the source, but I couldn't find anything on Stack Overflow on the topic regarding python.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
想通了。感谢您的建议。对于任何想要了解如何实现 PyECC 的信息的人,请查看我在 github 上编写的加密包装器。
CryptoWrapper - https://github.com/ f47h3r/CryptoWrapper
Figured it out. Thank you for your suggestions. For anyone wanting information on how to implement PyECC, check out the crypto wrapper I wrote on github.
CryptoWrapper - https://github.com/f47h3r/CryptoWrapper
看起来文档似乎很简单,因此源代码是您能够用来了解如何使用 python 绑定的唯一地方。然而,它看起来
应该适用于加密。同样的操作也适用于
pyecc.py
中定义的所有方法,即decrypt
、sign
和verify
。请务必检查方法签名以找出需要哪些参数。It looks as though the documentation is bare, so the source is the only spot you'll be able to use to figure out how to use the python bindings. However, it looks like
Should work for encryption. The same should work for all the methods defined in
pyecc.py
, namelydecrypt
,sign
, andverify
. Just be sure to check the method signatures to find out what arguments are required.查看 https://github.com/bwesterb/py-seccure
其用于 Python 的简单椭圆曲线加密与出色的 SECCURE 命令行实用程序兼容。
Check out https://github.com/bwesterb/py-seccure
Its Simple Elliptic Curve Cryptography for Python compatible with the excellent SECCURE command line utility.