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. 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.

Major changes in 4.1

Version 4.0 was the last version to support Python 2 and 3.4. Version 4.1 is compatible with Python 3.5+ only.

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.7.tar.gz (39.3 kB view details)

Uploaded Source

Built Distribution

rsa-4.7-py3-none-any.whl (34.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rsa-4.7.tar.gz
  • Upload date:
  • Size: 39.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1

File hashes

Hashes for rsa-4.7.tar.gz
Algorithm Hash digest
SHA256 69805d6b69f56eb05b62daea3a7dbd7aa44324ad1306445e05da8060232d00f4
MD5 d56c9ec2d4b21a2e93c04fcabef45e40
BLAKE2b-256 224e772004168e23d2ac5987e189e3b4a4305169e45057d8776e9d36c1ef250f

See more details on using hashes here.

File details

Details for the file rsa-4.7-py3-none-any.whl.

File metadata

  • Download URL: rsa-4.7-py3-none-any.whl
  • Upload date:
  • Size: 34.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.23.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1

File hashes

Hashes for rsa-4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a8774e55b59fd9fc893b0d05e9bfc6f47081f46ff5b46f39ccf24631b7be356b
MD5 d0f3950068c200899f82a29c42f87884
BLAKE2b-256 bf87dc7a6ebf0afbc602548627fa48e9c1147fa187233bf71d4c51c76a2cfb27

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