summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Tox: fix after removal of Poetrytemp-zipp-fixSybren A. Stüvel2020-06-111-1/+0
|
* More attempt at zipp fixingSybren A. Stüvel2020-06-112-1/+1
|
* Bumped version to 4.1.1Sybren A. Stüvel2020-06-112-3/+3
|
* Moving back to Pipenv to manage dependenciesSybren A. Stüvel2020-06-1110-1071/+666
| | | | | | | | | | | | | Poetry breaks no-binary installations of the RSA library, which defeats the purpose of this library. See https://github.com/sybrenstuvel/python-rsa/issues/148 Among other changes, this reverts commit fcf5b7457c70426a242b17db20dd4e34e1055f69. I also added a workaround for an `ImportError` importing `zipp` on Python 3.5.
* Compatibility with newer MyPy versionsSybren A. Stüvel2020-06-111-1/+1
| | | | The newer versions always have a message, even on success.
* Merge branch 'version-4.1-name-fix'Sybren A. Stüvel2020-06-101-1/+1
|\
| * Fixed project name in `pyproject.toml`Sybren A. Stüvel2020-06-101-1/+1
| | | | | | | | | | This resolves the issue that the files are uploaded to the wrong project on pypi.org.
* | Bumped version to 4.2-dev0Sybren A. Stüvel2020-06-102-2/+2
|/
* Bumped version to 4.1version-4.1Sybren A. Stüvel2020-06-102-3/+3
|
* Marked version 4.1 as releasedSybren A. Stüvel2020-06-101-1/+1
|
* Add support for Python 3.8Sybren A. Stüvel2020-06-104-163/+577
| | | | | | Supporting Python 3.8 not only required configuring Tox and Travis to run the tests on that version, but also required updating the dependencies. Without that update, `pluggy` wouldn't work properly.
* Fixed credit for reportSybren A. Stüvel2020-06-031-1/+1
|
* Fix CVE-2020-13757: detect cyphertext modifications by prepending zero bytesSybren A. Stüvel2020-06-033-0/+56
| | | | | | | | | | Reject cyphertexts that have been modified by prepending zero bytes, by checking the cyphertext length against the expected size (given the decryption key). This resolves CVE-2020-13757. The same approach is used when verifying a signature. Thanks Carnil for pointing this out on https://github.com/sybrenstuvel/python-rsa/issues/146
* Add more type hintsAndrey Semakin2020-06-039-26/+31
|
* Drop character encoding markers for Python 2.xAndrey Semakin2020-06-0327-54/+0
|
* Choose blinding factor relatively prime to NSybren A. Stüvel2020-04-142-2/+10
| | | | This is a requirement for RSA blinding, but wasn't implemented yet.
* Updated Code Climate badge in README.mdSybren A. Stüvel2019-08-041-1/+1
|
* Configured CodeClimateSybren A. Stüvel2019-08-041-0/+10
| | | | | | I've overridden the default configuration in such a way that the code as it is now passes all the code smells checks. Especially the default code complexity threshold is extremely low.
* Configured flask8 to use max_complexity=10Sybren A. Stüvel2019-08-042-23/+30
| | | | Also reorganised the only function that had a higher complexity.
* Link changelog from README.mdSybren A. Stüvel2019-08-041-1/+1
|
* Converted changelog from txt to MarkdownSybren A. Stüvel2019-08-041-42/+19
|
* Bumped copyright in documentation to 2011-2019Sybren A. Stüvel2019-08-041-1/+1
|
* Added flake8 as development dependency and fixed reported issuesSybren A. Stüvel2019-08-048-15/+65
|
* Add support for SHA3 hashingSybren A. Stüvel2019-08-046-3/+33
| | | | | | | | | | This is based on https://github.com/sybrenstuvel/python-rsa/pull/96, with a few improvements: - The minimum of one use of SHA3 in a unit test, to at least touch it at some point. - Documented the support of SHA3. - Only install the third-party library required by Python 3.5 when we're running on Python 3.5. Newer Python versions support SHA3 natively.
* Added update_version.sh scriptSybren A. Stüvel2019-08-041-0/+19
| | | | This script updates the Python-RSA version number in various places.
* Removed setup.py as this is now managed via PoetrySybren A. Stüvel2019-08-042-73/+0
| | | | | Poetry generates a setup.py as part of the building process. It's no longer necessary to keep it in the Git repo.
* Mentioned Poetry in the installation documentationSybren A. Stüvel2019-08-041-3/+4
|
* Updated CHANGELOGSybren A. Stüvel2019-08-041-1/+5
|
* Switch from Pipenv to PoetrySybren A. Stüvel2019-08-046-477/+596
| | | | | Poetry has a nicer interface, performs more tasks than Pipenv, and is generally more pleasant to use.
* Added type annotations + some fixes to get them correctSybren A. Stüvel2019-08-0412-116/+129
| | | | | | One functional change: `CryptoOperation.read_infile()` now reads bytes from `sys.stdin` instead of text. This is necessary to be consistent with the rest of the code, which all deals with bytes.
* Added mypy for static type checkingSybren A. Stüvel2019-08-048-32/+119
|
* Removed compatibility code for Python 2.7 and 3.4Sybren A. Stüvel2019-08-0421-406/+37
|
* Updated CHANGELOG for fix of #129Sybren A. Stüvel2019-08-041-0/+2
|
* Bumped version to 4.1-dev0Sybren A. Stüvel2019-08-042-3/+3
|
* Drop support for Python 2 and 3.4Sybren A. Stüvel2019-08-048-196/+246
| | | | | | | | | | | | | Some of our development dependencies, like Sphinx, have already dropped support for Python 2. This makes it harder for this project to update its dependencies. Since Python 2 only has a few more months to live, I think it's fine to drop support now. Python 3.4 has already reached its end-of-life date. Python-RSA now only supports Python 3.5 and newer. Python 3.5 support is intended to last until its end-of-life date of 2019-09-13: https://devguide.python.org/#status-of-python-branches
* Fix BytesWarning in testsJon Dufresne2018-10-231-3/+3
| | | | | | | | | | | | | | | Shouldn't try to coerce bytes to a string. Instead, print the repr value (e.g. b'mybytestring'). When running tests with the Python `-b` option, fixes warnings of the form: .../python-rsa/tests/test_strings.py:34: BytesWarning: str() on a bytes instance print("\tMessage: %s" % message) .../python-rsa/tests/test_strings.py:37: BytesWarning: str() on a bytes instance print("\tEncrypted: %s" % encrypted) .../python-rsa/tests/test_strings.py:40: BytesWarning: str() on a bytes instance print("\tDecrypted: %s" % decrypted)
* Use utf-8 when reading README; Use io.openAlexey Sveshnikov2018-10-231-1/+5
|
* Fixed testing on older Python versionsSybren A. Stüvel2018-10-233-60/+93
|
* Mark 4.0 as releasedversion-4.0Sybren A. Stüvel2018-09-164-5/+5
|
* Reword README.md for release of 4.0Sybren A. Stüvel2018-09-161-5/+5
|
* Declare Python 3.7 as supportedSybren A. Stüvel2018-09-161-0/+1
|
* Fixes for Travis CISybren A. Stüvel2018-09-163-7/+13
| | | | | | | | | | | | | | | | - Remove `--ignore-pipfile`. This option makes Pipenv install from the `Pipfile.lock` only, ignoring the `Pipfile` itself. In a sense this is good, because it tests with the locked dependencies. However, it breaks when you lock on Python 3.6 but test on Python 3.4 or 2.7. We'll have to re-visit this when dropping support for older Pythons. - pypy 3.6 -> 3.5 - Drop `pypy` from Travis CI testing We still test with 'pypy3.5'. However, Pipenv has an issue with pypy 2.7. See https://github.com/pypa/pipenv/issues/2449 - Pypy3.5 seems to want pathlib2 when running on Travis CI
* Remove Travis CI testing for Python 3.7Sybren A. Stüvel2018-09-161-2/+5
| | | | | | | Python 3.7 is not yet supported by Travis CI. See https://github.com/travis-ci/travis-ci/issues/9815 Also fixed a mistake in the test config.
* Typo in `.travis.yml`Sybren A. Stüvel2018-09-161-1/+1
|
* Remove unsued nose configurationJon Dufresne2018-09-161-3/+0
| | | | | The use of nose for testing was previously removed and replaced by pytest.
* speedupyjqiang2018-09-166-6/+6
| | | "if A and B" if mostly A is True then we should judge B at first
* Updated changelogSybren A. Stüvel2018-09-161-2/+2
|
* Moved `get_word_alignment()` from `_compat.py` to `machine_size.py`Sybren A. Stüvel2018-09-162-3/+77
| | | | | | In preparation of removal of Python 2.7 support, I only want to have compatibility code for Python 2.7 in `_compat.py`, and not other kinds of 'compatibility'.
* Fixed testing with Travis CI and ToxSybren A. Stüvel2018-09-165-49/+157
| | | | | | - Added missing test dependencies. - Updated `.travis.yml` and `tox.ini` to install deps and run with pipenv. - Added testing on Python 3.7.
* Transitioned from `requirements.txt` to Pipenv for package managementSybren A. Stüvel2018-07-104-6/+230
|