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.

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

Changes in 4.1-4.4

Version 4.1 dropped support for Python 2.7, and soon after that version 4.2 was released. Neither of the two made it explicit in setup.cfg that Python 3.5 or newer is required. This caused issues on Python 2.7, as Pip happily upgraded to the new version.

Version 4.3 is a re-tagged release of version 4.0. It is the last to support Python 2.7.

Version 4.4 will be a re-tagged release of version 4.2, and explicitly require Python 3.5 or newer.

Major changes in 4.0

Version 3.4 was the last version in the 3.x range. Version 4.0 drops the following modules, as they are insecure:

  • rsa._version133
  • rsa._version200
  • rsa.bigfile
  • rsa.varblock

Those modules were marked as deprecated in version 3.4.

Furthermore, in 4.0 the I/O functions is streamlined to always work with bytes on all supported versions of Python.

Version 4.0 drops support for Python 2.6 and 3.3.

Release files for rsa 4.3

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.3
File Size Uploaded
rsa-4.3.tar.gz 54.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rsa 4.3
File Interpreter ABI Platform
rsa-4.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 91.6 kB

Release files / rsa-4.3.tar.gz

Download URL rsa-4.3.tar.gz
Size 54.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7b863ff461f751373b4203dc09cfd07d92564575e8fafa45cc24fcde039153a0
BLAKE2b-256 checksum
How to use checksums
8e6995b9a27dd62db6af87c4201c2a4fb706bce7cad7cc934c3cde67c34f61f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.46.1 CPython/3.6.9

Release files / rsa-4.3-py2.py3-none-any.whl

Download URL rsa-4.3-py2.py3-none-any.whl
Size 36.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d111bb8b92767d68c153cb248da8465c28ccdec449a266b76ac7ada0b48d6bbe
BLAKE2b-256 checksum
How to use checksums
7218c309bed1b3d06c82e0c0d5004537cd72b52b9fdd049482119b6b3d868e1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.46.1 CPython/3.6.9

Release history Release notifications | RSS feed

4.4

2 release files

This release

4.3 This release

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