You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
leo 938979ae88
初始化
3 years ago
..
Deprecated-1.2.13.dist-info 初始化 3 years ago
PyMySQL-1.0.2.dist-info 初始化 3 years ago
SQLAlchemy-1.4.36.dist-info 初始化 3 years ago
__pycache__ 初始化 3 years ago
_distutils_hack 初始化 3 years ago
aiohttp 初始化 3 years ago
aiohttp-3.8.4.dist-info 初始化 3 years ago
aiosignal 初始化 3 years ago
aiosignal-1.3.1.dist-info 初始化 3 years ago
anyio 初始化 3 years ago
anyio-3.5.0.dist-info 初始化 3 years ago
asgiref 初始化 3 years ago
asgiref-3.5.1.dist-info 初始化 3 years ago
async_timeout 初始化 3 years ago
async_timeout-4.0.2.dist-info 初始化 3 years ago
attr 初始化 3 years ago
attrs 初始化 3 years ago
attrs-22.2.0.dist-info 初始化 3 years ago
certifi 初始化 3 years ago
certifi-2022.12.7.dist-info 初始化 3 years ago
charset_normalizer 初始化 3 years ago
charset_normalizer-3.1.0.dist-info 初始化 3 years ago
click 初始化 3 years ago
click-8.1.3.dist-info 初始化 3 years ago
deprecated 初始化 3 years ago
dns 初始化 3 years ago
dnspython-2.2.1.dist-info 初始化 3 years ago
ecdsa 初始化 3 years ago
ecdsa-0.17.0.dist-info 初始化 3 years ago
email_validator 初始化 3 years ago
email_validator-1.2.1.dist-info 初始化 3 years ago
fastapi 初始化 3 years ago
fastapi-0.75.2.dist-info 初始化 3 years ago
frozenlist 初始化 3 years ago
frozenlist-1.3.3.dist-info 初始化 3 years ago
greenlet 初始化 3 years ago
greenlet-1.1.2.dist-info 初始化 3 years ago
h11 初始化 3 years ago
h11-0.13.0.dist-info 初始化 3 years ago
idna 初始化 3 years ago
idna-3.3.dist-info 初始化 3 years ago
jose 初始化 3 years ago
limits 初始化 3 years ago
limits-2.8.0.dist-info 初始化 3 years ago
loguru 初始化 3 years ago
loguru-0.6.0.dist-info 初始化 3 years ago
multidict 初始化 3 years ago
multidict-6.0.4.dist-info 初始化 3 years ago
openai 初始化 3 years ago
openai-0.27.2.dist-info 初始化 3 years ago
packaging 初始化 3 years ago
packaging-22.0.dist-info 初始化 3 years ago
passlib 初始化 3 years ago
passlib-1.7.4.dist-info 初始化 3 years ago
pip 初始化 3 years ago
pip-22.0.2.dist-info 初始化 3 years ago
pkg_resources 初始化 3 years ago
pyasn1 初始化 3 years ago
pyasn1-0.4.8.dist-info 初始化 3 years ago
pydantic 初始化 3 years ago
pydantic-1.9.0.dist-info 初始化 3 years ago
pymysql 初始化 3 years ago
python_jose-3.3.0.dist-info 初始化 3 years ago
requests 初始化 3 years ago
requests-2.28.2.dist-info 初始化 3 years ago
rsa 初始化 3 years ago
rsa-4.8.dist-info 初始化 3 years ago
setuptools 初始化 3 years ago
setuptools-59.6.0.dist-info 初始化 3 years ago
six-1.16.0.dist-info 初始化 3 years ago
slowapi 初始化 3 years ago
slowapi-0.1.7.dist-info 初始化 3 years ago
sniffio 初始化 3 years ago
sniffio-1.2.0.dist-info 初始化 3 years ago
sqlalchemy 初始化 3 years ago
starlette 初始化 3 years ago
starlette-0.17.1.dist-info 初始化 3 years ago
tqdm 初始化 3 years ago
tqdm-4.65.0.dist-info 初始化 3 years ago
typing_extensions-4.2.0.dist-info 初始化 3 years ago
urllib3 初始化 3 years ago
urllib3-1.26.15.dist-info 初始化 3 years ago
uvicorn 初始化 3 years ago
uvicorn-0.17.6.dist-info 初始化 3 years ago
wrapt 初始化 3 years ago
wrapt-1.15.0.dist-info 初始化 3 years ago
yarl 初始化 3 years ago
yarl-1.8.2.dist-info 初始化 3 years ago
CHANGELOG.md 初始化 3 years ago
LICENSE 初始化 3 years ago
README.md 初始化 3 years ago
distutils-precedence.pth 初始化 3 years ago
six.py 初始化 3 years ago
typing_extensions.py 初始化 3 years ago

README.md

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.

Setup of Development Environment

python3 -m venv .venv
. ./.venv/bin/activate
pip install poetry
poetry install

Publishing a New Release

. ./.venv/bin/activate
poetry publish --build