Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
doc/ | 03-May-2024 | - | 1,274 | 806 | ||
rsa/ | 03-May-2024 | - | 2,781 | 1,754 | ||
tests/ | 03-May-2024 | - | 1,475 | 928 | ||
.codeclimate.yml | D | 03-May-2024 | 382 | 28 | 27 | |
.coveragerc | D | 03-May-2024 | 158 | 6 | 5 | |
.gitignore | D | 03-May-2024 | 181 | 21 | 16 | |
.travis.yml | D | 03-May-2024 | 729 | 34 | 21 | |
Android.bp | D | 03-May-2024 | 992 | 32 | 29 | |
CHANGELOG.md | D | 03-May-2024 | 7.6 KiB | 213 | 145 | |
LICENSE | D | 03-May-2024 | 577 | 14 | 10 | |
MANIFEST.in | D | 03-May-2024 | 131 | 7 | 6 | |
METADATA | D | 03-May-2024 | 479 | 20 | 19 | |
MODULE_LICENSE_APACHE2 | D | 03-May-2024 | 0 | |||
OWNERS | D | 03-May-2024 | 212 | 5 | 4 | |
Pipfile | D | 03-May-2024 | 424 | 21 | 17 | |
Pipfile.lock | D | 03-May-2024 | 26.6 KiB | 525 | 524 | |
README.md | D | 03-May-2024 | 2.3 KiB | 55 | 35 | |
create_timing_table.py | D | 03-May-2024 | 1.3 KiB | 43 | 18 | |
setup.cfg | D | 03-May-2024 | 243 | 17 | 13 | |
setup.py | D | 03-May-2024 | 2.9 KiB | 71 | 48 | |
speed.sh | D | 03-May-2024 | 1.4 KiB | 44 | 22 | |
tox.ini | D | 03-May-2024 | 395 | 19 | 15 | |
update_version.sh | D | 03-May-2024 | 476 | 19 | 13 |
README.md
1Pure Python RSA implementation 2============================== 3 4[![PyPI](https://img.shields.io/pypi/v/rsa.svg)](https://pypi.org/project/rsa/) 5[![Build Status](https://travis-ci.org/sybrenstuvel/python-rsa.svg?branch=master)](https://travis-ci.org/sybrenstuvel/python-rsa) 6[![Coverage Status](https://coveralls.io/repos/github/sybrenstuvel/python-rsa/badge.svg?branch=master)](https://coveralls.io/github/sybrenstuvel/python-rsa?branch=master) 7[![Code Climate](https://api.codeclimate.com/v1/badges/a99a88d28ad37a79dbf6/maintainability)](https://codeclimate.com/github/codeclimate/codeclimate/maintainability) 8 9[Python-RSA](https://stuvel.eu/rsa) is a pure-Python RSA implementation. It supports 10encryption and decryption, signing and verifying signatures, and key 11generation according to PKCS#1 version 1.5. It can be used as a Python 12library as well as on the commandline. The code was mostly written by 13Sybren A. Stüvel. 14 15Documentation can be found at the [Python-RSA homepage](https://stuvel.eu/rsa). For all changes, check [the changelog](https://github.com/sybrenstuvel/python-rsa/blob/master/CHANGELOG.md). 16 17Download and install using: 18 19 pip install rsa 20 21or download it from the [Python Package Index](https://pypi.org/project/rsa/). 22 23The source code is maintained at [GitHub](https://github.com/sybrenstuvel/python-rsa/) and is 24licensed under the [Apache License, version 2.0](https://www.apache.org/licenses/LICENSE-2.0) 25 26Security 27-------- 28 29Because of how Python internally stores numbers, it is very hard (if not impossible) to make a pure-Python program secure against timing attacks. This library is no exception, so use it with care. See https://securitypitfalls.wordpress.com/2018/08/03/constant-time-compare-in-python/ for more info. 30 31 32Major changes in 4.1 33-------------------- 34 35Version 4.0 was the last version to support Python 2 and 3.4. Version 4.1 is compatible with Python 3.5+ only. 36 37 38Major changes in 4.0 39-------------------- 40 41Version 3.4 was the last version in the 3.x range. Version 4.0 drops the following modules, 42as they are insecure: 43 44- `rsa._version133` 45- `rsa._version200` 46- `rsa.bigfile` 47- `rsa.varblock` 48 49Those modules were marked as deprecated in version 3.4. 50 51Furthermore, in 4.0 the I/O functions is streamlined to always work with bytes on all 52supported versions of Python. 53 54Version 4.0 drops support for Python 2.6 and 3.3. 55