f47h3r
f47h3r

Reputation: 109

PyECC Example - Python Elliptic Curve Cryptography

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!

Upvotes: 5

Views: 16201

Answers (3)

gauravsc
gauravsc

Reputation: 1

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

Upvotes: 0

f47h3r
f47h3r

Reputation: 109

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

Upvotes: 5

brc
brc

Reputation: 5391

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.

Upvotes: 0

Related Questions