commit | 29feb7900fe03ca9c5771be753e4febb36e2af67 | [log] [tgz] |
---|---|---|
author | Sybren A. Stüvel <sybren@stuvel.eu> | Wed Jan 27 18:12:13 2016 +0100 |
committer | Sybren A. Stüvel <sybren@stuvel.eu> | Wed Jan 27 18:12:13 2016 +0100 |
tree | bcb5aef46f2e9059c43de2946909516cd8191c66 | |
parent | 467ca03a0251390587f20918ea9118b1ac8bcbdc [diff] |
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.
[
] (https://travis-ci.org/sybrenstuvel/python-rsa) [
] (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