summaryrefslogtreecommitdiff
path: root/rsa/cli.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix typosKian-Meng, Ang2021-11-241-1/+1
|
* Reformatting with BlackSybren A. Stüvel2021-03-291-89/+118
| | | | No functional changes.
* Fix exception causes all over the codebaseRam Rachum2021-02-241-4/+4
| | | | | | | | | | | | | | | | | | | | | | The mistake is this: In some parts of the code, an exception is being caught and replaced with a more user-friendly error. In these cases the syntax `raise new_error from old_error` needs to be used. Python's exception chaining means it shows not only the traceback of the current exception, but that of the original exception (and possibly more.) This is regardless of `raise from`. The usage of `raise from` tells Python to put a more accurate message between the tracebacks. Instead of this: During handling of the above exception, another exception occurred: You'll get this: The above exception was the direct cause of the following exception: The first is inaccurate, because it signifies a bug in the exception-handling code itself, which is a separate situation than wrapping an exception.
* Add more type hintsAndrey Semakin2020-06-031-5/+5
|
* Drop character encoding markers for Python 2.xAndrey Semakin2020-06-031-2/+0
|
* Added flake8 as development dependency and fixed reported issuesSybren A. Stüvel2019-08-041-5/+5
|
* Added type annotations + some fixes to get them correctSybren A. Stüvel2019-08-041-18/+26
| | | | | | 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-041-5/+5
|
* Removed compatibility code for Python 2.7 and 3.4Sybren A. Stüvel2019-08-041-4/+2
|
* Create PY2 constant to simplify compatibility decisions (#82)Michael Manganiello2017-01-151-10/+2
| | | It's about time to get this merged, thanks again!
* More CLI tests & clearer bytes stuffSybren A. Stüvel2016-03-171-5/+9
| | | | | Ensuring that bytes are written correctly on all supported Python versions, including when writing to stdout.
* Ensuring that PEM output is always in bytes.Sybren A. Stüvel2016-03-171-0/+4
| | | | | This may break some applications. However, it does make the RSA library easier to use on different Python versions.
* Removed deprecated functionality.Sybren A. Stüvel2016-03-171-97/+2
| | | | | | | | | | | The following modules have been removed: - rsa._version133 - rsa._version200 - rsa.bigfile - rsa.varblock The encrypt/decrypt-bigfile CLI commands have also been removed.
* Updated documentation, mostly http -> https changesSybren A. Stüvel2016-02-051-1/+1
| | | | | | Also: - changed http to https in the code - changed header underlines in the documentation to match the header length
* Big refactor to become more PEP8 compliant.Sybren A. Stüvel2016-01-221-66/+70
| | | | | Mostly focused on docstrings (''' → """), indentation, empty lines, and superfluous parenthesis.
* Fixed typo in pyrsa-verify help messageSybren A. Stüvel2014-02-221-1/+1
|
* Fixed CLI functions for Python 3.xSybren A. Stüvel2012-06-181-21/+21
|
* Reverts docstring quoting syntax.Yesudeep Mangalapilly2011-08-241-29/+29
|
* Parellelized testing. Caught a lot of bugs.Yesudeep Mangalapilly2011-08-161-29/+31
|
* More documentation about key size and OpenSSL compatibilitySybren A. Stüvel2011-08-031-3/+3
|
* More consistent options for pyrsa-keygenSybren A. Stüvel2011-08-031-4/+4
|
* Added pyrsa-encrypt/decrypt-bigfile commandsSybren A. Stüvel2011-08-011-0/+90
|
* Added verify and sign commands, fixed some bugs in other commandsSybren A. Stüvel2011-07-311-18/+75
|
* Added encrypt and decrypt CLI commandsSybren A. Stüvel2011-07-311-1/+148
|
* Slightly more docSybren A. Stüvel2011-07-311-0/+4
|
* Added pyrsa-keygen CLI scriptSybren A. Stüvel2011-07-311-0/+79