commit | 214c0f90e2dab0bc3d5a052cdf726c762cb4b74c | [log] [tgz] |
---|---|---|
author | Saif Hakim <[email protected]> | Wed Feb 17 08:08:18 2021 |
committer | Sybren A. Stüvel <[email protected]> | Wed Feb 24 12:35:18 2021 |
tree | 7d15b1fdc72bd4e21d19e73c4d433860507ad3ec | |
parent | 4c3cd57ae2717856e09b9fed587e4d1afa3b44f2 [diff] |
Clean up stdout when using unittest test runner While pytest is the preferred test runner via tox, it looks like some folks are still running tests via `python3 setup.py test` which uses unittest and does not have good support for capturing stdout. To make using unittest slightly more friendly, we further swallow stdout / stderr for cli tests, and ensure print statements start on a newline.
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
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.
python3 -m venv .venv . ./.venv/bin/activate pip install poetry poetry install
. ./.venv/bin/activate poetry publish --build