Fix #18: Add an 'exponent' argument to key.newkeys()

Adds the possibility to create a new key using a custom exponent. Mostly
for compatibility. Also removed the unused parameter nbits from
calculate_keys(). I added a new function calculate_keys_custom_exponent()
so that people still passing a value to nbits don't accidentally use
it as the exponent.
2 files changed
tree: bcb5aef46f2e9059c43de2946909516cd8191c66
  1. doc/
  2. rsa/
  3. tests/
  4. .codeclimate.yml
  5. .gitignore
  6. .travis.yml
  7. CHANGELOG.txt
  8. create_timing_table.py
  9. LICENSE
  10. MANIFEST.in
  11. README.md
  12. requirements.txt
  13. setup.cfg
  14. setup.py
  15. speed.sh
  16. tox.ini
README.md

Pure Python RSA implementation

PyPI [Build Status] (https://travis-ci.org/sybrenstuvel/python-rsa) [Code Climate] (https://codeclimate.com/github/sybrenstuvel/python-rsa)

Python-RSA is a pure-Python RSA implementation. It supports encryption and decryption, signing and verifying signatures, and key generation according to PKCS#1 version 1.5. It can be used as a Python library as well as on the commandline. The code was mostly written by Sybren A. Stüvel.

Documentation can be found at the Python-RSA homepage.

Download and install using:

pip install rsa

or:

easy_install rsa

or download it from the Python Package Index.

The source code is maintained at Github and is licensed under the Apache License, version 2.0