5

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!

1
  • As this is a wrapper around libseccure, looking at the documentation for libseccure (to be found at PyECC's github site) could help a bit. Commented Oct 12, 2011 at 22:46

3 Answers 3

5

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

Sign up to request clarification or add additional context in comments.

Comments

-1

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.

1 Comment

this is of no use , you cannot run encrypt against a key , you have to load the key in to a cipher first , please don't paste things that you haven't bothered to test
-1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.