开发者

PyECC Example - Python Elliptic Curve Cryptography

开发者 https://www.devze.com 2023-04-12 10:24 出处:网络
I am working with PyECC - it is the only elliptic curve cryptography module for python that I c开发者_Python百科an find. I was wondering if anyone had an example of how to use the module? I\'ll try re

I am working with PyECC - it is the only elliptic curve cryptography module for python that I c开发者_Python百科an 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!


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


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

>>> encrypter = ECC.generate()
>>> encrypter.encrypt('your text here')

Should work for encryption. The same should work for all the methods defined in pyecc.py, namely decrypt, sign, and verify. Just be sure to check the method signatures to find out what arguments are required.


Check out https://github.com/bwesterb/py-seccure Its Simple Elliptic Curve Cryptography for Python compatible with the excellent SECCURE command line utility.

0

精彩评论

暂无评论...
验证码 换一张
取 消