- Notifications
You must be signed in to change notification settings - Fork0
Python-RSA is a pure-Python RSA implementation.
License
myheroyuki/python-rsa
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Python-RSA is a pure-Python RSA implementation. It supportsencryption and decryption, signing and verifying signatures, and keygeneration according to PKCS#1 version 1.5. It can be used as a Pythonlibrary as well as on the commandline. The code was mostly written bySybren A. Stüvel.
Documentation can be found at thePython-RSA homepage. For all changes, checkthe changelog.
Download and install using:
pip install rsa
or download it from thePython Package Index.
The source code is maintained atGitHub and islicensed under theApache License, version 2.0
Because of how Python internally stores numbers, it is not possible to make a pure-Python program secure against timing attacks. This library is no exception, so use it with care. Seesybrenstuvel#230 andhttps://securitypitfalls.wordpress.com/2018/08/03/constant-time-compare-in-python/ for more info.
For instructions on how to best report security issues, see ourSecurity Policy.
python3 -m venv .venv. ./.venv/bin/activatepip install poetrypoetry install
Since this project is considered critical on the Python Package Index,two-factor authentication is required. For uploading packages to PyPi, an APIkey is required; username+password will not work.
First, generate an API token athttps://pypi.org/manage/account/token/. Then,use this token when publishing instead of your username and password.
As username, use__token__
.As password, use the token itself, including thepypi-
prefix.
Seehttps://pypi.org/help/#apitoken for help using API tokens to publish. Thisis what I have in~/.pypirc
:
[distutils]index-servers = rsa# Use `twine upload -r rsa` to upload with this token.[rsa] repository = https://upload.pypi.org/legacy/ username = __token__ password = pypi-token
. ./.venv/bin/activatepoetry buildtwine check dist/rsa-4.10-dev0.tar.gz dist/rsa-4.10-dev0-*.whltwine upload -r rsa dist/rsa-4.10-dev0.tar.gz dist/rsa-4.10-dev0-*.whl
About
Python-RSA is a pure-Python RSA implementation.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Languages
- Python99.6%
- Shell0.4%