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

[![PyPI](https://img.shields.io/pypi/v/rsa.svg)](https://pypi.org/project/rsa/) [![Build Status](https://travis-ci.org/sybrenstuvel/python-rsa.svg?branch=master)](https://travis-ci.org/sybrenstuvel/python-rsa) [![Coverage Status](https://coveralls.io/repos/github/sybrenstuvel/python-rsa/badge.svg?branch=master)](https://coveralls.io/github/sybrenstuvel/python-rsa?branch=master) [![Code Climate](https://img.shields.io/codeclimate/github/sybrenstuvel/python-rsa.svg)](https://codeclimate.com/github/sybrenstuvel/python-rsa)

[Python-RSA](https://stuvel.eu/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](https://stuvel.eu/rsa).

Download and install using:

pip install rsa

or download it from the [Python Package Index](https://pypi.org/project/rsa/).

The source code is maintained at [GitHub](https://github.com/sybrenstuvel/python-rsa/) and is licensed under the [Apache License, version 2.0](https://www.apache.org/licenses/LICENSE-2.0)

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rsa-4.0-py2.py3-none-any.whl (38.3 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: rsa-4.0.tar.gz
  • Upload date:
  • Size: 37.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for rsa-4.0.tar.gz
Algorithm Hash digest
SHA256 1a836406405730121ae9823e19c6e806c62bbad73f890574fff50efa4122c487
MD5 9f9af433a16868b616fc609215e91ddb
BLAKE2b-256 cbd08f99b91432a60ca4b1cd478fd0bdf28c1901c58e3a9f14f4ba3dba86b57f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rsa-4.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 38.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for rsa-4.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 14ba45700ff1ec9eeb206a2ce76b32814958a98e372006c8fb76ba820211be66
MD5 cd26899c47c41140bc0db845ecfc313e
BLAKE2b-256 02e538518af393f7c214357079ce67a317307936896e961e35450b70fad2a9cf

See more details on using hashes here.

Supported by

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