Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Pure Python RSA implementation

PyPI Build Status Coverage Status Code Climate

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

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)

Source distribution for rsa 4.8
File Size Uploaded
rsa-4.8.tar.gz 28.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rsa 4.8
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

4.8 This release

2 release files

4.4

2 release files

4.1.1

1 release file

3.2.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page