This project has been archived by its maintainers, and is no longer receiving any updates.
Pure Python RSA implementation
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. For all changes, check the changelog.
Download and install using:
pip 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
Security
Because 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.
Setup of Development Environment
python3 -m venv .venv
. ./.venv/bin/activate
pip install poetry
poetry install
Publishing a New Release
. ./.venv/bin/activate
poetry publish --build
Metadata
Release files for rsa 4.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| rsa-4.8.tar.gz | 28.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| rsa-4.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.9 kB
Release files / rsa-4.8.tar.gz
| Download URL | rsa-4.8.tar.gz |
|---|---|
| Size | 28.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c6bd9dc7a543b7fe4304a631f8a8a3b674e2bbfc49c2ae96200cdbe55df6b17
|
|
BLAKE2b-256 checksum How to use checksums |
8cee4022542e0fed77dd6ddade38e1e4dea3299f873b7fd4e6d78319953b0f83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.7 Linux/5.10.16.3-microsoft-standard-WSL2
|
Release files / rsa-4.8-py3-none-any.whl
| Download URL | rsa-4.8-py3-none-any.whl |
|---|---|
| Size | 39.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95c5d300c4e879ee69708c428ba566c59478fd653cc3a22243eeb8ed846950bb
|
|
BLAKE2b-256 checksum How to use checksums |
30ab8fd9e88e6fa5ec41afca995938bbefb72195278e0cfc5bd76a4f29b23fb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.6 CPython/3.9.7 Linux/5.10.16.3-microsoft-standard-WSL2
|
Security for rsa 4.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.