Skip to main content

Pure-Python RSA implementation

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rsa-4.5.tar.gz (50.7 kB view details)

Uploaded Source

Built Distribution

rsa-4.5-py2.py3-none-any.whl (36.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file rsa-4.5.tar.gz.

File metadata

  • Download URL: rsa-4.5.tar.gz
  • Upload date:
  • Size: 50.7 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rsa-4.5.tar.gz
Algorithm Hash digest
SHA256 4d409f5a7d78530a4a2062574c7bd80311bc3af29b364e293aa9b03eea77714f
MD5 f6d05e133e715d77b207bb7bd90d7854
BLAKE2b-256 f71a7837a99fbbe0f48c8e0e15d5418fd8981dbda68286a55b9838e218bd085d

See more details on using hashes here.

File details

Details for the file rsa-4.5-py2.py3-none-any.whl.

File metadata

  • Download URL: rsa-4.5-py2.py3-none-any.whl
  • Upload date:
  • Size: 36.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for rsa-4.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 35c5b5f6675ac02120036d97cf96f1fde4d49670543db2822ba5015e21a18032
MD5 49cc5f4740f1f388ddf244433423619a
BLAKE2b-256 26f88127fdda0294f044121d20aac7785feb810e159098447967a6103dedfb96

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page